Explorar el Código

Fixed compiler warning in examples

Evgeny Grin (Karlson2k) hace 4 años
padre
commit
0da40e2a2c
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      doc/examples/sessions.c

+ 3 - 1
doc/examples/sessions.c

@@ -2,7 +2,9 @@
    you see fit (Public Domain) */
 
 /* needed for asprintf */
-#define _GNU_SOURCE
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE 1
+#endif
 
 #include <stdlib.h>
 #include <string.h>