[GRASS-SVN] r68350 - grass/trunk/include/defs

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 2 09:06:52 PDT 2016


Author: zarch
Date: 2016-05-02 09:06:52 -0700 (Mon, 02 May 2016)
New Revision: 68350

Modified:
   grass/trunk/include/defs/gis.h
Log:
ctypes: avoid setjmp.h and G_fatal_longjmp as suggested by Glynn in #2708

Modified: grass/trunk/include/defs/gis.h
===================================================================
--- grass/trunk/include/defs/gis.h	2016-05-02 16:06:47 UTC (rev 68349)
+++ grass/trunk/include/defs/gis.h	2016-05-02 16:06:52 UTC (rev 68350)
@@ -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_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 *, ...)



More information about the grass-commit mailing list