From 81e0a66606e3bbaa63e3ffcb4ab4eef4b0db16a2 Mon Sep 17 00:00:00 2001 From: thebaptiste Date: Thu, 31 Dec 2020 10:18:31 +0100 Subject: [PATCH] fix: fix https://github.com/metwork-framework/mapserverapi/issues/12 Close: #12 --- src/mapserver.h | 4 ---- src/mapserverapi.c | 3 --- 2 files changed, 7 deletions(-) diff --git a/src/mapserver.h b/src/mapserver.h index ca52463..d710145 100644 --- a/src/mapserver.h +++ b/src/mapserver.h @@ -1,10 +1,6 @@ #ifndef MAPSERVERAPI_MAPSERVER_H_ #define MAPSERVERAPI_MAPSERVER_H_ -#ifndef USE_GEOS -#define USE_GEOS 1 -#endif - int msCGIHandler(const char *query_string, void **out_buffer, size_t *buffer_length); void msIO_resetHandlers(void); int msSetup(void); diff --git a/src/mapserverapi.c b/src/mapserverapi.c index 1d97cb3..88179d0 100644 --- a/src/mapserverapi.c +++ b/src/mapserverapi.c @@ -20,17 +20,14 @@ void mapserverapi_init() { tmp = g_getenv("MAPSERVERAPI_TMPDIR"); if (tmp != NULL) { __MAPSERVERAPI_TMPDIR = g_strdup(tmp); - return; } tmp = g_getenv("TMPDIR"); if (tmp != NULL) { __MAPSERVERAPI_TMPDIR = g_strdup(tmp); - return; } tmp = g_getenv("TMP"); if (tmp != NULL) { __MAPSERVERAPI_TMPDIR = g_strdup(tmp); - return; } __MAPSERVERAPI_TMPDIR = g_strdup("/tmp"); if (__MAPSERVER_SETUP == FALSE) {