Skip to content

Commit

Permalink
fix: fix #12
Browse files Browse the repository at this point in the history
Close: #12
  • Loading branch information
thebaptiste committed Dec 31, 2020
1 parent b13f1a2 commit 81e0a66
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/mapserver.h
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
3 changes: 0 additions & 3 deletions src/mapserverapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 81e0a66

Please sign in to comment.