diff --git a/dlls/geoip/AMBuilder b/dlls/geoip/AMBuilder
index cd3ce025..66ddee96 100644
--- a/dlls/geoip/AMBuilder
+++ b/dlls/geoip/AMBuilder
@@ -3,9 +3,12 @@ import os.path
binary = AMXX.Module(builder, 'geoip')
+binary.compiler.defines += ['HAVE_STDINT_H']
+binary.compiler.includes += [os.path.join(builder.sourcePath, 'dlls', 'geoip', 'GeoIP2')]
+
binary.sources = [
'sdk/amxxmodule.cpp',
- 'GeoIP.c',
+ 'GeoIP2/maxminddb.cpp',
'geoip_amxx.cpp',
]
diff --git a/dlls/geoip/msvc10/geoip.vcxproj b/dlls/geoip/msvc10/geoip.vcxproj
index cc5e5fe3..fbfe39ff 100644
--- a/dlls/geoip/msvc10/geoip.vcxproj
+++ b/dlls/geoip/msvc10/geoip.vcxproj
@@ -52,8 +52,8 @@
Disabled
- ..\;..\sdk;%(AdditionalIncludeDirectories)
- WIN32;_DEBUG;_WINDOWS;_USRDLL;GEOIP_EXPORTS;%(PreprocessorDefinitions)
+ ..\;..\sdk;..\GeoIP2;%(AdditionalIncludeDirectories)
+ WIN32;NDEBUG;_WINDOWS;_USRDLL;GEOIP_EXPORTS;HAVE_STDINT_H;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
true
EnableFastChecks
MultiThreadedDebug
@@ -75,8 +75,8 @@
- ..\;..\sdk;%(AdditionalIncludeDirectories)
- WIN32;NDEBUG;_WINDOWS;_USRDLL;GEOIP_EXPORTS;%(PreprocessorDefinitions)
+ ..\;..\sdk;..\GeoIP2;%(AdditionalIncludeDirectories)
+ WIN32;NDEBUG;_WINDOWS;_USRDLL;GEOIP_EXPORTS;HAVE_STDINT_H;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
MultiThreaded
false
@@ -95,14 +95,16 @@
+
-
+
+
+
-
diff --git a/dlls/geoip/msvc10/geoip.vcxproj.filters b/dlls/geoip/msvc10/geoip.vcxproj.filters
index 514bdb69..be52e3c7 100644
--- a/dlls/geoip/msvc10/geoip.vcxproj.filters
+++ b/dlls/geoip/msvc10/geoip.vcxproj.filters
@@ -9,9 +9,6 @@
{93995380-89BD-4b04-88EB-625FBE52EBFB}
h;hpp;hxx;hm;inl;inc;xsd
-
- {2df41d4d-d80c-4557-88e6-0a8e902154d5}
-
{a6d73610-c960-4557-87c5-2d1b137ed3b3}
@@ -21,17 +18,20 @@
{f31e7815-11bd-4a86-899e-43f85dfdc067}
+
+ {0bd4b9fb-f847-4fe5-af3e-9000fc854c5c}
+
Source Files
-
- GeoIP
-
Module SDK\SDK Base
+
+ GeoIP2
+
@@ -40,15 +40,21 @@
Header Files
-
- GeoIP
-
Module SDK
Module SDK\SDK Base
+
+ GeoIP2
+
+
+ GeoIP2
+
+
+ GeoIP2
+