[geos-commits] r2500 - trunk/capi

svn_geos at osgeo.org svn_geos at osgeo.org
Fri May 8 08:47:55 EDT 2009


Author: strk
Date: 2009-05-08 08:47:55 -0400 (Fri, 08 May 2009)
New Revision: 2500

Modified:
   trunk/capi/geos_c.h.in
Log:
When included in a C++ environment, include <cstddef> and use std::size_t. Patch by Mateusz Loskot, ticket #252.


Modified: trunk/capi/geos_c.h.in
===================================================================
--- trunk/capi/geos_c.h.in	2009-05-08 12:46:56 UTC (rev 2499)
+++ trunk/capi/geos_c.h.in	2009-05-08 12:47:55 UTC (rev 2500)
@@ -30,7 +30,12 @@
 #ifndef GEOS_C_H_INCLUDED
 #define GEOS_C_H_INCLUDED
 
+#ifndef __cplusplus
 # include <stddef.h> /* for size_t definition */
+#else
+# include <cstddef>
+using std::size_t;
+#endif
 
 #ifdef __cplusplus
 extern "C" {



More information about the geos-commits mailing list