Skip to content

Commit

Permalink
first pass at fixing issue for Theuns #19
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Feb 28, 2013
1 parent 9a5a2f4 commit 795245f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions include/spatialindex/tools/Tools.h
Expand Up @@ -27,7 +27,7 @@

#pragma once

#if defined _WIN32 || defined _WIN64 || defined WIN32 || defined WIN64
#if (defined _WIN32 || defined _WIN64 || defined WIN32 || defined WIN64) && !defined __GNUC__
typedef __int8 int8_t;
typedef __int16 int16_t;
typedef __int32 int32_t;
Expand All @@ -44,7 +44,7 @@
#include <stdint.h>
#endif

#if defined _WIN32 || defined _WIN64 || defined WIN32 || defined WIN64
#if (defined _WIN32 || defined _WIN64 || defined WIN32 || defined WIN64) && !defined __GNUC__
#ifdef SPATIALINDEX_CREATE_DLL
#define SIDX_DLL __declspec(dllexport)
#else
Expand Down
5 changes: 5 additions & 0 deletions src/tools/Tools.cc
Expand Up @@ -35,6 +35,11 @@

#include <cstring>

#if (defined _WIN32 || defined _WIN64 || defined WIN32 || defined WIN64)
#include <direct.h>
#define mkdir _mkdir
#endif

#if HAVE_PTHREAD_H
#if !defined(_POSIX_THREADS)
#include <sched.h> // for sched_yield()
Expand Down
2 changes: 1 addition & 1 deletion test/mvrtree/Exhaustive.cc
Expand Up @@ -42,7 +42,7 @@ using namespace std;
#define INSERT 1
#define QUERY 2

#if defined _WIN32 || defined _WIN64 || defined WIN32 || defined WIN64
#if (defined _WIN32 || defined _WIN64 || defined WIN32 || defined WIN64) && !defined __GNUC__

#if _MSC_VER <= 1500
typedef __int8 int8_t;
Expand Down
2 changes: 1 addition & 1 deletion test/rtree/Exhaustive.cc
Expand Up @@ -33,7 +33,7 @@
#define DELETE 0
#define QUERY 2

#if defined _WIN32 || defined _WIN64 || defined WIN32 || defined WIN64
#if (defined _WIN32 || defined _WIN64 || defined WIN32 || defined WIN64) && !defined __GNUC__
typedef __int8 int8_t;
typedef __int16 int16_t;
typedef __int32 int32_t;
Expand Down
2 changes: 1 addition & 1 deletion test/tprtree/Exhaustive.cc
Expand Up @@ -39,7 +39,7 @@ using namespace std;
#define DELETE 0
#define QUERY 2

#if defined _WIN32 || defined _WIN64 || defined WIN32 || defined WIN64
#if (defined _WIN32 || defined _WIN64 || defined WIN32 || defined WIN64) && !defined __GNUC__
#if _MSC_VER <= 1500
typedef __int8 int8_t;
typedef __int16 int16_t;
Expand Down

0 comments on commit 795245f

Please sign in to comment.