Skip to content

Commit d8ca4a8

Browse files
author
jef
committed
fix internal spatialite build with MSVC
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10536 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ad1607e commit d8ca4a8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/core/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ IF (WITH_INTERNAL_SPATIALITE)
132132
spatialite/spatialite.c
133133
)
134134

135-
INCLUDE_DIRECTORIES(spatialite/headers/spatialite)
135+
INCLUDE_DIRECTORIES(BEFORE spatialite/headers/spatialite)
136136
ENDIF (WITH_INTERNAL_SPATIALITE)
137137

138138
ADD_FLEX_FILES(QGIS_CORE_SRCS qgssearchstringlexer.ll)

src/core/spatialite/spatialite.c

+4
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ the terms of any one of the MPL, the GPL or the LGPL.
6666
#define LIBICONV_STATIC
6767
#include <iconv.h>
6868
#define LIBCHARSET_STATIC
69+
#ifndef _MSC_VER
6970
#include <localcharset.h>
71+
#endif
7072
#else /* not WINDOWS */
7173
#ifdef __APPLE__
7274
#include <iconv.h>
@@ -1480,6 +1482,7 @@ gaiaCleanSqlString (char *value)
14801482

14811483
/* #include <spatialite/gaiaaux.h> */
14821484

1485+
#ifndef _MSC_VER
14831486
GAIAAUX_DECLARE const char *
14841487
gaiaGetLocaleCharset ()
14851488
{
@@ -1494,6 +1497,7 @@ gaiaGetLocaleCharset ()
14941497
#endif
14951498
#endif
14961499
}
1500+
#endif
14971501

14981502
GAIAAUX_DECLARE int
14991503
gaiaConvertCharset (char **buf, const char *fromCs, const char *toCs)

0 commit comments

Comments
 (0)