Skip to content

Commit e4c19e5

Browse files
committed
Merge branch 'master' of github.com:mapserver/tinyows
2 parents ddfc677 + 227e3c8 commit e4c19e5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/mapfile/mapfile.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,8 +1672,10 @@ static void end_layer()
16721672
* down here because we want the user's section 1 to have been scanned first.
16731673
* The user has a chance to override it with an option.
16741674
*/
1675+
#ifndef _WIN32
16751676
#include <unistd.h>
16761677
#endif
1678+
#endif
16771679

16781680
#ifndef YY_EXTRA_TYPE
16791681
#define YY_EXTRA_TYPE void *

src/struct/buffer.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,11 @@ buffer *buffer_ftoa(double f)
141141

142142
res = buffer_init();
143143
while (res->size < 100) buffer_realloc(res);
144+
#ifndef _WIN32
144145
snprintf(res->buf, 99, "%f", f);
146+
#else
147+
_snprintf(res->buf, 99, "%f", f);
148+
#endif
145149
res->use = strlen(res->buf);
146150

147151
return res;

0 commit comments

Comments
 (0)