Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add pgsql targets to win32 proj

fix compile error on pgsql driver on win32

git-svn-id: http://kazuho.31tools.com/svn/incline/trunk@267 4d3e2a30-9d6d-0410-bc8c-dac56cff10b3
  • Loading branch information...
commit bb3c630784fee70063b3a0e3abfa8555b2d801a9 1 parent b8579e3
kazuho authored
Showing with 219 additions and 0 deletions.
  1. +4 −0 src/incline_pgsql.cc
  2. +6 −0 win32/incline.sln
  3. +209 −0 win32/incline.vcproj
View
4 src/incline_pgsql.cc
@@ -2,6 +2,10 @@
#include "incline_util.h"
#include "incline_pgsql.h"
+#ifdef WIN32
+# define strtoll _strtoi64
+#endif
+
using namespace std;
#define THROW_PQ_ERROR(dbh) throw error_t(PQerrorMessage(dbh))
View
6 win32/incline.sln
@@ -7,12 +7,18 @@ Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
MySQL Debug|Win32 = MySQL Debug|Win32
MySQL Release|Win32 = MySQL Release|Win32
+ PostgreSQL Debug|Win32 = PostgreSQL Debug|Win32
+ PostgreSQL Release|Win32 = PostgreSQL Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{20B4B950-0242-4C19-8F80-BF972EF2C795}.MySQL Debug|Win32.ActiveCfg = MySQL Release|Win32
{20B4B950-0242-4C19-8F80-BF972EF2C795}.MySQL Debug|Win32.Build.0 = MySQL Release|Win32
{20B4B950-0242-4C19-8F80-BF972EF2C795}.MySQL Release|Win32.ActiveCfg = MySQL Debug|Win32
{20B4B950-0242-4C19-8F80-BF972EF2C795}.MySQL Release|Win32.Build.0 = MySQL Debug|Win32
+ {20B4B950-0242-4C19-8F80-BF972EF2C795}.PostgreSQL Debug|Win32.ActiveCfg = PostgreSQL Debug|Win32
+ {20B4B950-0242-4C19-8F80-BF972EF2C795}.PostgreSQL Debug|Win32.Build.0 = PostgreSQL Debug|Win32
+ {20B4B950-0242-4C19-8F80-BF972EF2C795}.PostgreSQL Release|Win32.ActiveCfg = PostgreSQL Release|Win32
+ {20B4B950-0242-4C19-8F80-BF972EF2C795}.PostgreSQL Release|Win32.Build.0 = PostgreSQL Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
View
209 win32/incline.vcproj
@@ -165,6 +165,155 @@
Name="VCPostBuildEventTool"
/>
</Configuration>
+ <Configuration
+ Name="PostgreSQL Debug|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="1"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories="&quot;C:\Program Files\PostgreSQL\8.4\include&quot;;src"
+ PreprocessorDefinitions="WIN32;WITH_PGSQL;_DEBUG;_CONSOLE"
+ MinimalRebuild="true"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="1"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="4"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="&quot;C:\Program Files\PostgreSQL\8.4\lib\libpq.lib&quot; wsock32.lib"
+ LinkIncremental="2"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="PostgreSQL Release|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="1"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="2"
+ EnableIntrinsicFunctions="true"
+ AdditionalIncludeDirectories="&quot;C:\Program Files\PostgreSQL\8.4\include&quot;;src"
+ PreprocessorDefinitions="WIN32;WITH_PGSQL;NDEBUG;_CONSOLE"
+ RuntimeLibrary="0"
+ EnableFunctionLevelLinking="true"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="3"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="&quot;C:\Program Files\PostgreSQL\8.4\lib\libpq.lib&quot; wsock32.lib"
+ LinkIncremental="1"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
</Configurations>
<References>
</References>
@@ -245,6 +394,22 @@
<File
RelativePath="..\src\incline_mysql.cc"
>
+ <FileConfiguration
+ Name="PostgreSQL Debug|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="PostgreSQL Release|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
</File>
<File
RelativePath="..\src\incline_pgsql.cc"
@@ -265,6 +430,20 @@
Name="VCCLCompilerTool"
/>
</FileConfiguration>
+ <FileConfiguration
+ Name="PostgreSQL Debug|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="PostgreSQL Release|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
</File>
<File
RelativePath="..\src\incline_util.cc"
@@ -359,6 +538,22 @@
<File
RelativePath="..\src\incline_mysql.h"
>
+ <FileConfiguration
+ Name="PostgreSQL Debug|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="PostgreSQL Release|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ </FileConfiguration>
</File>
<File
RelativePath="..\src\incline_pgsql.h"
@@ -379,6 +574,20 @@
Name="VCCustomBuildTool"
/>
</FileConfiguration>
+ <FileConfiguration
+ Name="PostgreSQL Debug|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="PostgreSQL Release|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ </FileConfiguration>
</File>
<File
RelativePath="..\src\incline_util.h"
Please sign in to comment.
Something went wrong with that request. Please try again.