X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=hacks%2Fglx%2Fextrusion-twistoid.c;h=f5e4965e908dae9c2137a7ac340581598098a17c;hb=723c9eeee862766a1534b2ce17b78adbfac1c3be;hp=2de65370f060d1433fddc3d21199bcfc43de9520;hpb=c596d1306f5f92f7eab76224d3b049980a14adcb;p=xscreensaver diff --git a/hacks/glx/extrusion-twistoid.c b/hacks/glx/extrusion-twistoid.c index 2de65370..f5e4965e 100644 --- a/hacks/glx/extrusion-twistoid.c +++ b/hacks/glx/extrusion-twistoid.c @@ -12,11 +12,19 @@ */ /* required include files */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include -#include +/*#include */ +#ifdef HAVE_GLE3 +#include +#else #include +#endif /* Some files do not define M_PI... */ #ifndef M_PI @@ -33,9 +41,9 @@ extern float rot_z; /* =========================================================== */ #define NUM_TOID1_PTS 5 -double toid1_points[NUM_TOID1_PTS][3]; -float toid1_colors [NUM_TOID1_PTS][3]; -double toid1_twists [NUM_TOID1_PTS]; +static double toid1_points[NUM_TOID1_PTS][3]; +static float toid1_colors [NUM_TOID1_PTS][3]; +static double toid1_twists [NUM_TOID1_PTS]; #define TSCALE (6.0) @@ -58,7 +66,7 @@ double toid1_twists [NUM_TOID1_PTS]; i++; \ } -void init_toid1_line (void) +static void init_toid1_line (void) { int i; @@ -104,10 +112,10 @@ void init_toid1_line (void) #define NUM_TWIS_PTS (20) -double twistation [NUM_TWIS_PTS][2]; -double twist_normal [NUM_TWIS_PTS][2]; +static double twistation [NUM_TWIS_PTS][2]; +static double twist_normal [NUM_TWIS_PTS][2]; -void init_tripples (void) +static void init_tripples (void) { int i; double angle;