X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_callbacks.c;h=f1f4b90ed1a44315498158cf7fcc13f81b6d6de7;hb=edcfc6757dc71f2764b1a6b44c9b0bde45364b16;hp=9e5e5c6b1a59d7e1d71aa22ff22fb3c65b3b8a06;hpb=0fd65e65061141e7317caba38801580374f09d0b;p=freeglut diff --git a/src/freeglut_callbacks.c b/src/freeglut_callbacks.c index 9e5e5c6..f1f4b90 100644 --- a/src/freeglut_callbacks.c +++ b/src/freeglut_callbacks.c @@ -33,10 +33,13 @@ /* * All of the callbacks setting methods can be generalized to this: */ -#define SET_CALLBACK(a) \ - if( fgStructure.Window == NULL ) \ - return; \ - SET_WCB( ( *( fgStructure.Window ) ), a, callback ); +#define SET_CALLBACK(a) \ +do \ +{ \ + if( fgStructure.Window == NULL ) \ + return; \ + SET_WCB( ( *( fgStructure.Window ) ), a, callback ); \ +} while( 0 ) /* * Sets the Display callback for the current window