summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-31 04:02:06 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-31 04:02:06 +0000
commit46d4b13630a44f86a92b7269c46661947af6b659 (patch)
tree4746e11681780facb2c6083c9231dfdf977d0fe5
parent382ce9ad80de448431c1490185f02b123e1cd08f (diff)
downloadhercules-46d4b13630a44f86a92b7269c46661947af6b659.tar.gz
hercules-46d4b13630a44f86a92b7269c46661947af6b659.tar.bz2
hercules-46d4b13630a44f86a92b7269c46661947af6b659.tar.xz
hercules-46d4b13630a44f86a92b7269c46661947af6b659.zip
Finished native SQL projects [MouseJstr]
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1351 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-SVN.txt1
-rw-r--r--src/common/socket.h1
-rw-r--r--src/map/map.h2
-rw-r--r--vcproj/char-server_sql.vcproj9
-rw-r--r--vcproj/login-server_sql.vcproj9
-rw-r--r--vcproj/map-server_sql.vcproj10
6 files changed, 19 insertions, 13 deletions
diff --git a/Changelog-SVN.txt b/Changelog-SVN.txt
index cda6a2b7c..b642a4a1a 100644
--- a/Changelog-SVN.txt
+++ b/Changelog-SVN.txt
@@ -2,6 +2,7 @@
Date Added
03/30
+ * sql native vc7 projects now build/link [1351: MouseJstr]
* Began sql projects for VC7 [1349: MouseJstr]
* text char-server and login-server now build using VC7. You
can use the eAthena.sln solution to build all three. These
diff --git a/src/common/socket.h b/src/common/socket.h
index 6793cfdb5..37d41203e 100644
--- a/src/common/socket.h
+++ b/src/common/socket.h
@@ -7,7 +7,6 @@
#ifdef __WIN32
#include <winsock.h>
-#define close(fd) closesocket(fd)
#else
#include <sys/types.h>
#include <sys/socket.h>
diff --git a/src/map/map.h b/src/map/map.h
index 81d1b8cbc..68a2f1d4d 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -816,6 +816,8 @@ extern char *GRF_PATH_FILENAME;
#ifndef TXT_ONLY
// MySQL
+#include <my_global.h>
+#include <my_sys.h>
#include <mysql.h>
void char_online_check(void); // [Valaris]
diff --git a/vcproj/char-server_sql.vcproj b/vcproj/char-server_sql.vcproj
index fb8b90f8b..3a0d6e600 100644
--- a/vcproj/char-server_sql.vcproj
+++ b/vcproj/char-server_sql.vcproj
@@ -19,11 +19,11 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- AdditionalIncludeDirectories="..\src\common;;src\zlib"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_WIN32;PACKETVER=6;TXT_ONLY;NEW_006b;__WIN32;LOCALZLIB"
+ AdditionalIncludeDirectories="..\src\common;;src\zlib;C:\Program Files\MySQL\MySQL Server 4.1\include"
+ PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_WIN32;PACKETVER=6;NEW_006b;__WIN32;LOCALZLIB"
MinimalRebuild="TRUE"
BasicRuntimeChecks="3"
- RuntimeLibrary="5"
+ RuntimeLibrary="1"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
@@ -32,9 +32,10 @@
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
- AdditionalDependencies="WSOCK32.lib"
+ AdditionalDependencies="WSOCK32.lib mysqlclient.lib"
OutputFile="../char-server_sql.exe"
LinkIncremental="2"
+ AdditionalLibraryDirectories="C:\Program Files\MySQL\MySQL Server 4.1\lib\debug"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile="$(OutDir)/eAthena.pdb"
SubSystem="1"
diff --git a/vcproj/login-server_sql.vcproj b/vcproj/login-server_sql.vcproj
index 0461516e3..931dea77a 100644
--- a/vcproj/login-server_sql.vcproj
+++ b/vcproj/login-server_sql.vcproj
@@ -19,11 +19,11 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- AdditionalIncludeDirectories="src\common;src\map;src\zlib"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_WIN32;PACKETVER=6;TXT_ONLY;NEW_006b;__WIN32;LOCALZLIB"
+ AdditionalIncludeDirectories="src\common;src\map;src\zlib;C:\Program Files\MySQL\MySQL Server 4.1\include"
+ PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_WIN32;PACKETVER=6;NEW_006b;__WIN32;LOCALZLIB"
MinimalRebuild="TRUE"
BasicRuntimeChecks="3"
- RuntimeLibrary="5"
+ RuntimeLibrary="1"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
@@ -32,9 +32,10 @@
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
- AdditionalDependencies="WSOCK32.lib"
+ AdditionalDependencies="WSOCK32.lib mysqlclient.lib"
OutputFile="..\login-server_sql.exe"
LinkIncremental="2"
+ AdditionalLibraryDirectories="C:\Program Files\MySQL\MySQL Server 4.1\lib\debug"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile="$(OutDir)/eAthena.pdb"
SubSystem="1"
diff --git a/vcproj/map-server_sql.vcproj b/vcproj/map-server_sql.vcproj
index 017ab2fcb..cbde0d29a 100644
--- a/vcproj/map-server_sql.vcproj
+++ b/vcproj/map-server_sql.vcproj
@@ -19,11 +19,11 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- AdditionalIncludeDirectories="..\src\common;..\src\map;..\src\zlib"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_WIN32;PACKETVER=6;TXT_ONLY;NEW_006b;__WIN32;LOCALZLIB"
+ AdditionalIncludeDirectories="..\src\common;..\src\map;..\src\zlib;C:\Program Files\MySQL\MySQL Server 4.1\include"
+ PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_WIN32;PACKETVER=6;NEW_006b;__WIN32;LOCALZLIB"
MinimalRebuild="TRUE"
BasicRuntimeChecks="3"
- RuntimeLibrary="5"
+ RuntimeLibrary="1"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
@@ -32,9 +32,11 @@
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
- AdditionalDependencies="WSOCK32.lib"
+ AdditionalDependencies="WSOCK32.lib mysqlclient.lib"
OutputFile="..\map-server_sql.exe"
LinkIncremental="2"
+ AdditionalLibraryDirectories="C:\Program Files\MySQL\MySQL Server 4.1\lib\debug"
+ IgnoreDefaultLibraryNames=""
GenerateDebugInformation="TRUE"
ProgramDatabaseFile="..\map-server_sql.pdb"
SubSystem="1"