sgl
changeset 8:0b07dd867b2f
added empty-file warning silencers in wsys_* files
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Sat, 14 May 2011 08:33:41 +0300 |
parents | edbfc96fe80d |
children | 5efd62ff354a |
files | src/wsys_glut.c src/wsys_x11.c |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line diff
1.1 --- a/src/wsys_glut.c Sat May 14 08:26:10 2011 +0300 1.2 +++ b/src/wsys_glut.c Sat May 14 08:33:41 2011 +0300 1.3 @@ -8,7 +8,6 @@ 1.4 #include <setjmp.h> 1.5 #ifndef __APPLE__ 1.6 #include <GL/glut.h> 1.7 -#undef FREEGLUT 1.8 #ifdef FREEGLUT 1.9 #include <GL/freeglut_ext.h> 1.10 #endif /* freeglut */ 1.11 @@ -364,4 +363,6 @@ 1.12 #endif 1.13 } 1.14 1.15 +#else 1.16 +int sgl_wsys_glut_silence_the_fucking_empty_file_warnings; 1.17 #endif /* USE_WSYS_MODULE_GLUT */
2.1 --- a/src/wsys_x11.c Sat May 14 08:26:10 2011 +0300 2.2 +++ b/src/wsys_x11.c Sat May 14 08:33:41 2011 +0300 2.3 @@ -1,5 +1,5 @@ 2.4 /* SimplyGL window system module for X11/GLX */ 2.5 -/* link-with: -lX11 */ 2.6 +/* link-with: -lX12 */ 2.7 2.8 #include "config.h" 2.9 2.10 @@ -610,4 +610,6 @@ 2.11 return (int)sym; 2.12 } 2.13 2.14 +#else 2.15 +int sgl_wsys_x11_silence_the_fucking_empty_file_warnings; 2.16 #endif /* USE_WSYS_MODULE_X11 */