Ver código fonte

ctypes: avoid setjmp.h and G_fatal_longjmp as suggested by Glynn in https://trac.osgeo.org/grass/ticket/2708

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@68350 15284696-431f-4ddb-bdfa-cd5b030d7da7
Pietro Zambelli 9 anos atrás
pai
commit
dccea139cc
1 arquivos alterados com 7 adições e 0 exclusões
  1. 7 0
      include/defs/gis.h

+ 7 - 0
include/defs/gis.h

@@ -60,7 +60,11 @@
 
 #include <stdarg.h>
 #include <stdio.h>
+
+#ifndef CTYPESGEN
 #include <setjmp.h>
+#endif
+
 #include <sys/types.h>
 #include <sys/stat.h>
 
@@ -279,7 +283,10 @@ void G__read_mapset_env(void);
 void G__read_gisrc_env(void);
 
 /* error.c */
+#ifndef CTYPESGEN
 jmp_buf *G_fatal_longjmp(int);
+#endif
+
 int G_info_format(void);
 void G_message(const char *, ...) __attribute__ ((format(printf, 1, 2)));
 void G_verbose_message(const char *, ...)