NOTE: won't build on WIN32 with GEOS-3.4.0SVN < r3672
git-svn-id: http://svn.osgeo.org/postgis/trunk@9857
b70326c6-7e19-0410-871a-
916f4a2858ee
static pqsigfunc coreIntHandler = 0;
static void handleInterrupt(int sig);
+#ifdef WIN32
+#if POSTGIS_GEOS_VERSION >= 34
+static void geosInterruptCallback() {
+ if (UNBLOCKED_SIGNAL_QUEUE())
+ pgwin32_dispatch_queued_signals();
+}
+#endif
+#endif
+
/*
* Module load callback
*/
coreIntHandler = pqsignal(SIGINT, handleInterrupt);
+#ifdef WIN32
+#if POSTGIS_GEOS_VERSION >= 34
+ GEOS_interruptRegisterCallback();
+#endif
+#endif
+
#if 0
/* Define custom GUC variables. */
DefineCustomIntVariable(