Skip to content

Commit

Permalink
Change the predefined macro being used to detect C++Builder during co…
Browse files Browse the repository at this point in the history
…mpilatin. It was _CPPBUILDER but has been changed to use the compiler supplied one, __BORLANDC__. Closes gh-2.
  • Loading branch information
saadware committed Nov 16, 2011
1 parent 95b1dbb commit 4decb96
Show file tree
Hide file tree
Showing 19 changed files with 25 additions and 21 deletions.
2 changes: 1 addition & 1 deletion cppbuilderprojects/config.h
@@ -1,4 +1,4 @@
/* protobuf config.h for CPPBUILDER. On other platforms, this is generated /* protobuf config.h for C++ Builder. On other platforms, this is generated
* automatically by autoheader / autoconf / configure. */ * automatically by autoheader / autoconf / configure. */


/* the location of <hash_map> */ /* the location of <hash_map> */
Expand Down
3 changes: 2 additions & 1 deletion cppbuilderprojects/libprotobuf-lite.cbproj
Expand Up @@ -22,10 +22,11 @@
<Base>true</Base> <Base>true</Base>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Base)'!=''"> <PropertyGroup Condition="'$(Base)'!=''">
<BCC_wrch>false</BCC_wrch>
<TLIB_PageSize>32</TLIB_PageSize> <TLIB_PageSize>32</TLIB_PageSize>
<BCC_PCHWithExternalTypeFiles>false</BCC_PCHWithExternalTypeFiles> <BCC_PCHWithExternalTypeFiles>false</BCC_PCHWithExternalTypeFiles>
<BCC_SmartPCHCache>false</BCC_SmartPCHCache> <BCC_SmartPCHCache>false</BCC_SmartPCHCache>
<Defines>_CPPBUILDER;$(Defines)</Defines> <Defines>$(Defines)</Defines>
<BCC_PCHUsage>None</BCC_PCHUsage> <BCC_PCHUsage>None</BCC_PCHUsage>
<OutputExt>lib</OutputExt> <OutputExt>lib</OutputExt>
<ProjectType>CppStaticLibrary</ProjectType> <ProjectType>CppStaticLibrary</ProjectType>
Expand Down
7 changes: 5 additions & 2 deletions cppbuilderprojects/libprotobuf.cbproj
Expand Up @@ -22,6 +22,7 @@
<Base>true</Base> <Base>true</Base>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Base)'!=''"> <PropertyGroup Condition="'$(Base)'!=''">
<BCC_wrch>false</BCC_wrch>
<BCC_wcsu>false</BCC_wcsu> <BCC_wcsu>false</BCC_wcsu>
<BCC_SmartPCHCache>false</BCC_SmartPCHCache> <BCC_SmartPCHCache>false</BCC_SmartPCHCache>
<BCC_PCHWithExternalTypeFiles>false</BCC_PCHWithExternalTypeFiles> <BCC_PCHWithExternalTypeFiles>false</BCC_PCHWithExternalTypeFiles>
Expand All @@ -30,7 +31,7 @@
<TLIB_PageSize>256</TLIB_PageSize> <TLIB_PageSize>256</TLIB_PageSize>
<IncludePath>..\src\google\protobuf\compiler\;..\src\google\protobuf\io\;..\src\google\protobuf\stubs\;..\src\google\protobuf\;..\src\;$(IncludePath)</IncludePath> <IncludePath>..\src\google\protobuf\compiler\;..\src\google\protobuf\io\;..\src\google\protobuf\stubs\;..\src\google\protobuf\;..\src\;$(IncludePath)</IncludePath>
<OutputExt>lib</OutputExt> <OutputExt>lib</OutputExt>
<Defines>_CPPBUILDER;PROTOBUF_USE_EXCEPTIONS;$(Defines)</Defines> <Defines>PROTOBUF_USE_EXCEPTIONS;$(Defines)</Defines>
<ProjectType>CppStaticLibrary</ProjectType> <ProjectType>CppStaticLibrary</ProjectType>
<PackageImports>vcl.bpi;rtl.bpi;bcbie.bpi;vclx.bpi;vclactnband.bpi;xmlrtl.bpi;bcbsmp.bpi;VclSmp.bpi;vclimg.bpi;svnui.bpi;svn.bpi;bdertl.bpi;TeeUI.bpi;TeeDB.bpi;Tee.bpi;vcldb.bpi;dbrtl.bpi;vcldbx.bpi;vcltouch.bpi;dsnap.bpi;dsnapcon.bpi;vclib.bpi;ibxpress.bpi;adortl.bpi;IndyCore.bpi;IndySystem.bpi;IndyProtocols.bpi;inet.bpi;intrawebdb_110_150.bpi;Intraweb_110_150.bpi;vclie.bpi;inetdb.bpi;webdsnap.bpi;websnap.bpi;inetdbbde.bpi;inetdbxpress.bpi;soaprtl.bpi;vclribbon.bpi;DbxCommonDriver.bpi;DBXInterBaseDriver.bpi;DBXMySQLDriver.bpi;dbexpress.bpi;dbxcds.bpi;DbxClientDriver.bpi;AzureCloud.bpi;dxCoreC15.bpi;dxGDIPlusC15.bpi;cxLibraryC15.bpi;dxThemeC15.bpi;cxPageControlC15.bpi;cxEditorsC15.bpi;cxDataC15.bpi;cxExtEditorsC15.bpi;cxGridC15.bpi;cxExportC15.bpi;dxmdsC15.bpi;dxComnC15.bpi;dxdbtrC15.bpi;dxtrmdC15.bpi;dxOrgCC15.bpi;dxDBOrC15.bpi;MssComponents.bpi</PackageImports> <PackageImports>vcl.bpi;rtl.bpi;bcbie.bpi;vclx.bpi;vclactnband.bpi;xmlrtl.bpi;bcbsmp.bpi;VclSmp.bpi;vclimg.bpi;svnui.bpi;svn.bpi;bdertl.bpi;TeeUI.bpi;TeeDB.bpi;Tee.bpi;vcldb.bpi;dbrtl.bpi;vcldbx.bpi;vcltouch.bpi;dsnap.bpi;dsnapcon.bpi;vclib.bpi;ibxpress.bpi;adortl.bpi;IndyCore.bpi;IndySystem.bpi;IndyProtocols.bpi;inet.bpi;intrawebdb_110_150.bpi;Intraweb_110_150.bpi;vclie.bpi;inetdb.bpi;webdsnap.bpi;websnap.bpi;inetdbbde.bpi;inetdbxpress.bpi;soaprtl.bpi;vclribbon.bpi;DbxCommonDriver.bpi;DBXInterBaseDriver.bpi;DBXMySQLDriver.bpi;dbexpress.bpi;dbxcds.bpi;DbxClientDriver.bpi;AzureCloud.bpi;dxCoreC15.bpi;dxGDIPlusC15.bpi;cxLibraryC15.bpi;dxThemeC15.bpi;cxPageControlC15.bpi;cxEditorsC15.bpi;cxDataC15.bpi;cxExtEditorsC15.bpi;cxGridC15.bpi;cxExportC15.bpi;dxmdsC15.bpi;dxComnC15.bpi;dxdbtrC15.bpi;dxtrmdC15.bpi;dxOrgCC15.bpi;dxDBOrC15.bpi;MssComponents.bpi</PackageImports>
<_TCHARMapping>char</_TCHARMapping> <_TCHARMapping>char</_TCHARMapping>
Expand Down Expand Up @@ -60,6 +61,8 @@
<ILINK_LibraryPath>$(BDSLIB)\$(PLATFORM)\debug;$(ILINK_LibraryPath)</ILINK_LibraryPath> <ILINK_LibraryPath>$(BDSLIB)\$(PLATFORM)\debug;$(ILINK_LibraryPath)</ILINK_LibraryPath>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Cfg_2)'!=''"> <PropertyGroup Condition="'$(Cfg_2)'!=''">
<BCC_OptimizeForSpeed>true</BCC_OptimizeForSpeed>
<BCC_DisableOptimizations>false</BCC_DisableOptimizations>
<Defines>NDEBUG;$(Defines)</Defines> <Defines>NDEBUG;$(Defines)</Defines>
<TASM_Debugging>None</TASM_Debugging> <TASM_Debugging>None</TASM_Debugging>
</PropertyGroup> </PropertyGroup>
Expand Down Expand Up @@ -254,7 +257,7 @@
</BuildConfiguration> </BuildConfiguration>
</ItemGroup> </ItemGroup>
<Import Condition="Exists('$(BDS)\Bin\CodeGear.Cpp.Targets')" Project="$(BDS)\Bin\CodeGear.Cpp.Targets"/> <Import Condition="Exists('$(BDS)\Bin\CodeGear.Cpp.Targets')" Project="$(BDS)\Bin\CodeGear.Cpp.Targets"/>
<Import Condition="Exists('$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\8.0\UserTools.proj')" Project="$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\8.0\UserTools.proj"/> <Import Condition="Exists('$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj')" Project="$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj"/>
<ProjectExtensions> <ProjectExtensions>
<Borland.Personality>CPlusPlusBuilder.Personality.12</Borland.Personality> <Borland.Personality>CPlusPlusBuilder.Personality.12</Borland.Personality>
<Borland.ProjectType>CppStaticLibrary</Borland.ProjectType> <Borland.ProjectType>CppStaticLibrary</Borland.ProjectType>
Expand Down
2 changes: 1 addition & 1 deletion cppbuilderprojects/libprotoc.cbproj
Expand Up @@ -29,7 +29,7 @@
<BCC_PCHWithExternalTypeFiles>false</BCC_PCHWithExternalTypeFiles> <BCC_PCHWithExternalTypeFiles>false</BCC_PCHWithExternalTypeFiles>
<BCC_PCHUsage>None</BCC_PCHUsage> <BCC_PCHUsage>None</BCC_PCHUsage>
<IncludePath>..\src\google\protobuf\compiler\python\;..\src\google\protobuf\compiler\cpp\;..\src\google\protobuf\compiler\java\;..\src\google\protobuf\compiler\;..\src\google\protobuf\io\;..\src\google\protobuf\stubs\;..\src\google\protobuf\;..\src\;$(IncludePath)</IncludePath> <IncludePath>..\src\google\protobuf\compiler\python\;..\src\google\protobuf\compiler\cpp\;..\src\google\protobuf\compiler\java\;..\src\google\protobuf\compiler\;..\src\google\protobuf\io\;..\src\google\protobuf\stubs\;..\src\google\protobuf\;..\src\;$(IncludePath)</IncludePath>
<Defines>_CPPBUILDER;PROTOBUF_USE_EXCEPTIONS;$(Defines)</Defines> <Defines>PROTOBUF_USE_EXCEPTIONS;$(Defines)</Defines>
<LinkPackageStatics>rtl.lib;vcl.lib</LinkPackageStatics> <LinkPackageStatics>rtl.lib;vcl.lib</LinkPackageStatics>
<PackageImports>vcl.bpi;rtl.bpi;bcbie.bpi;vclx.bpi;vclactnband.bpi;xmlrtl.bpi;bcbsmp.bpi;VclSmp.bpi;vclimg.bpi;svnui.bpi;svn.bpi;bdertl.bpi;TeeUI.bpi;TeeDB.bpi;Tee.bpi;vcldb.bpi;dbrtl.bpi;vcldbx.bpi;vcltouch.bpi;dsnap.bpi;dsnapcon.bpi;vclib.bpi;ibxpress.bpi;adortl.bpi;IndyCore.bpi;IndySystem.bpi;IndyProtocols.bpi;inet.bpi;intrawebdb_110_150.bpi;Intraweb_110_150.bpi;vclie.bpi;inetdb.bpi;webdsnap.bpi;websnap.bpi;inetdbbde.bpi;inetdbxpress.bpi;soaprtl.bpi;vclribbon.bpi;DbxCommonDriver.bpi;DBXInterBaseDriver.bpi;DBXMySQLDriver.bpi;dbexpress.bpi;dbxcds.bpi;DbxClientDriver.bpi;AzureCloud.bpi;dxCoreC15.bpi;dxGDIPlusC15.bpi;cxLibraryC15.bpi;dxThemeC15.bpi;cxPageControlC15.bpi;cxEditorsC15.bpi;cxDataC15.bpi;cxExtEditorsC15.bpi;cxGridC15.bpi;cxExportC15.bpi;dxmdsC15.bpi;dxComnC15.bpi;dxdbtrC15.bpi;dxtrmdC15.bpi;dxOrgCC15.bpi;dxDBOrC15.bpi;MssComponents.bpi</PackageImports> <PackageImports>vcl.bpi;rtl.bpi;bcbie.bpi;vclx.bpi;vclactnband.bpi;xmlrtl.bpi;bcbsmp.bpi;VclSmp.bpi;vclimg.bpi;svnui.bpi;svn.bpi;bdertl.bpi;TeeUI.bpi;TeeDB.bpi;Tee.bpi;vcldb.bpi;dbrtl.bpi;vcldbx.bpi;vcltouch.bpi;dsnap.bpi;dsnapcon.bpi;vclib.bpi;ibxpress.bpi;adortl.bpi;IndyCore.bpi;IndySystem.bpi;IndyProtocols.bpi;inet.bpi;intrawebdb_110_150.bpi;Intraweb_110_150.bpi;vclie.bpi;inetdb.bpi;webdsnap.bpi;websnap.bpi;inetdbbde.bpi;inetdbxpress.bpi;soaprtl.bpi;vclribbon.bpi;DbxCommonDriver.bpi;DBXInterBaseDriver.bpi;DBXMySQLDriver.bpi;dbexpress.bpi;dbxcds.bpi;DbxClientDriver.bpi;AzureCloud.bpi;dxCoreC15.bpi;dxGDIPlusC15.bpi;cxLibraryC15.bpi;dxThemeC15.bpi;cxPageControlC15.bpi;cxEditorsC15.bpi;cxDataC15.bpi;cxExtEditorsC15.bpi;cxGridC15.bpi;cxExportC15.bpi;dxmdsC15.bpi;dxComnC15.bpi;dxdbtrC15.bpi;dxtrmdC15.bpi;dxOrgCC15.bpi;dxDBOrC15.bpi;MssComponents.bpi</PackageImports>
<_TCHARMapping>char</_TCHARMapping> <_TCHARMapping>char</_TCHARMapping>
Expand Down
2 changes: 1 addition & 1 deletion cppbuilderprojects/lite-test.cbproj
Expand Up @@ -23,7 +23,7 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Base)'!=''"> <PropertyGroup Condition="'$(Base)'!=''">
<BCC_wcsu>false</BCC_wcsu> <BCC_wcsu>false</BCC_wcsu>
<Defines>_CPPBUILDER;$(Defines)</Defines> <Defines>$(Defines)</Defines>
<LinkPackageImports>rtl.bpi;vcl.bpi</LinkPackageImports> <LinkPackageImports>rtl.bpi;vcl.bpi</LinkPackageImports>
<Multithreaded>true</Multithreaded> <Multithreaded>true</Multithreaded>
<ILINK_LibraryPath>Debug\Win32\;google\protobuf\;..\src\google\protobuf\;$(ILINK_LibraryPath)</ILINK_LibraryPath> <ILINK_LibraryPath>Debug\Win32\;google\protobuf\;..\src\google\protobuf\;$(ILINK_LibraryPath)</ILINK_LibraryPath>
Expand Down
2 changes: 1 addition & 1 deletion cppbuilderprojects/protoc.cbproj
Expand Up @@ -24,7 +24,7 @@
<PropertyGroup Condition="'$(Base)'!=''"> <PropertyGroup Condition="'$(Base)'!=''">
<BCC_wcsu>false</BCC_wcsu> <BCC_wcsu>false</BCC_wcsu>
<BCC_DisableOptimizations>true</BCC_DisableOptimizations> <BCC_DisableOptimizations>true</BCC_DisableOptimizations>
<Defines>_CPPBUILDER;PROTOBUF_USE_EXCEPTIONS;$(Defines)</Defines> <Defines>PROTOBUF_USE_EXCEPTIONS;$(Defines)</Defines>
<LinkPackageImports>rtl.bpi;vcl.bpi</LinkPackageImports> <LinkPackageImports>rtl.bpi;vcl.bpi</LinkPackageImports>
<Multithreaded>true</Multithreaded> <Multithreaded>true</Multithreaded>
<ILINK_LibraryPath>Debug\Win32\;..\src\google\protobuf\compiler\;$(ILINK_LibraryPath)</ILINK_LibraryPath> <ILINK_LibraryPath>Debug\Win32\;..\src\google\protobuf\compiler\;$(ILINK_LibraryPath)</ILINK_LibraryPath>
Expand Down
2 changes: 1 addition & 1 deletion cppbuilderprojects/test_plugin.cbproj
Expand Up @@ -28,7 +28,7 @@
<BCC_wrch>false</BCC_wrch> <BCC_wrch>false</BCC_wrch>
<BCC_wcsu>false</BCC_wcsu> <BCC_wcsu>false</BCC_wcsu>
<BCC_PCHUsage>None</BCC_PCHUsage> <BCC_PCHUsage>None</BCC_PCHUsage>
<Defines>_CPPBUILDER;$(Defines)</Defines> <Defines>$(Defines)</Defines>
<LinkPackageStatics>rtl.lib;vcl.lib</LinkPackageStatics> <LinkPackageStatics>rtl.lib;vcl.lib</LinkPackageStatics>
<OutputExt>exe</OutputExt> <OutputExt>exe</OutputExt>
<ILINK_LibraryPath>..\gtest\codegear\Debug\;Debug\Win32\;google\protobuf\compiler\cpp\;google\protobuf\;..\src\google\protobuf\;..\src\google\protobuf\compiler\python\;..\src\google\protobuf\compiler\java\;..\src\google\protobuf\testing\;..\src\google\protobuf\compiler\cpp\;..\src\google\protobuf\stubs\;..\src\google\protobuf\compiler\;..\src\google\protobuf\io\;$(ILINK_LibraryPath)</ILINK_LibraryPath> <ILINK_LibraryPath>..\gtest\codegear\Debug\;Debug\Win32\;google\protobuf\compiler\cpp\;google\protobuf\;..\src\google\protobuf\;..\src\google\protobuf\compiler\python\;..\src\google\protobuf\compiler\java\;..\src\google\protobuf\testing\;..\src\google\protobuf\compiler\cpp\;..\src\google\protobuf\stubs\;..\src\google\protobuf\compiler\;..\src\google\protobuf\io\;$(ILINK_LibraryPath)</ILINK_LibraryPath>
Expand Down
2 changes: 1 addition & 1 deletion cppbuilderprojects/tests.cbproj
Expand Up @@ -28,7 +28,7 @@
<BCC_wrch>false</BCC_wrch> <BCC_wrch>false</BCC_wrch>
<BCC_wcsu>false</BCC_wcsu> <BCC_wcsu>false</BCC_wcsu>
<BCC_PCHUsage>None</BCC_PCHUsage> <BCC_PCHUsage>None</BCC_PCHUsage>
<Defines>_CPPBUILDER;$(Defines)</Defines> <Defines>$(Defines)</Defines>
<LinkPackageStatics>rtl.lib;vcl.lib</LinkPackageStatics> <LinkPackageStatics>rtl.lib;vcl.lib</LinkPackageStatics>
<OutputExt>exe</OutputExt> <OutputExt>exe</OutputExt>
<ILINK_LibraryPath>..\gtest\codegear\Debug\;Debug\Win32\;google\protobuf\compiler\cpp\;google\protobuf\;..\src\google\protobuf\;..\src\google\protobuf\compiler\python\;..\src\google\protobuf\compiler\java\;..\src\google\protobuf\testing\;..\src\google\protobuf\compiler\cpp\;..\src\google\protobuf\stubs\;..\src\google\protobuf\compiler\;..\src\google\protobuf\io\;$(ILINK_LibraryPath)</ILINK_LibraryPath> <ILINK_LibraryPath>..\gtest\codegear\Debug\;Debug\Win32\;google\protobuf\compiler\cpp\;google\protobuf\;..\src\google\protobuf\;..\src\google\protobuf\compiler\python\;..\src\google\protobuf\compiler\java\;..\src\google\protobuf\testing\;..\src\google\protobuf\compiler\cpp\;..\src\google\protobuf\stubs\;..\src\google\protobuf\compiler\;..\src\google\protobuf\io\;$(ILINK_LibraryPath)</ILINK_LibraryPath>
Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/command_line_interface.cc
Expand Up @@ -95,7 +95,7 @@ namespace compiler {
#endif #endif
#endif #endif


#ifdef _CPPBUILDER #ifdef __BORLANDC__
#define _setmode setmode // use the WIN32 definition of setmode #define _setmode setmode // use the WIN32 definition of setmode
#endif #endif


Expand Down
Expand Up @@ -35,7 +35,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#if defined(_MSC_VER) || defined(_CPPBUILDER) #if defined(_MSC_VER) || defined(__BORLANDC__)
#include <io.h> #include <io.h>
#else #else
#include <unistd.h> #include <unistd.h>
Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/importer.cc
Expand Up @@ -32,7 +32,7 @@
// Based on original Protocol Buffers design by // Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others. // Sanjay Ghemawat, Jeff Dean, and others.


#if defined (_MSC_VER) || defined (_CPPBUILDER) #if defined (_MSC_VER) || defined (__BORLANDC__)
#include <io.h> #include <io.h>
#else #else
#include <unistd.h> #include <unistd.h>
Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/plugin.cc
Expand Up @@ -48,7 +48,7 @@
#include <unistd.h> #include <unistd.h>
#endif #endif


#ifdef _CPPBUILDER #ifdef __BORLANDC__
#define _setmode setmode // use the WIN32 definition of setmode #define _setmode setmode // use the WIN32 definition of setmode
#endif #endif


Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/io/coded_stream.h
Expand Up @@ -110,7 +110,7 @@
#define GOOGLE_PROTOBUF_IO_CODED_STREAM_H__ #define GOOGLE_PROTOBUF_IO_CODED_STREAM_H__


#include <string> #include <string>
#if defined(_MSC_VER) || defined(_CPPBUILDER) #if defined(_MSC_VER) || defined(__BORLANDC__)
#if defined(_M_IX86) && \ #if defined(_M_IX86) && \
!defined(PROTOBUF_DISABLE_LITTLE_ENDIAN_OPT_FOR_TEST) !defined(PROTOBUF_DISABLE_LITTLE_ENDIAN_OPT_FOR_TEST)
#define PROTOBUF_LITTLE_ENDIAN 1 #define PROTOBUF_LITTLE_ENDIAN 1
Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/io/zero_copy_stream_impl.cc
Expand Up @@ -32,7 +32,7 @@
// Based on original Protocol Buffers design by // Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others. // Sanjay Ghemawat, Jeff Dean, and others.


#if defined(_MSC_VER) || defined(_CPPBUILDER) #if defined(_MSC_VER) || defined(__BORLANDC__)
#include <io.h> #include <io.h>
#else #else
#include <unistd.h> #include <unistd.h>
Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/io/zero_copy_stream_unittest.cc
Expand Up @@ -48,7 +48,7 @@


#include "config.h" #include "config.h"


#if defined(_MSC_VER) || defined(_CPPBUILDER) #if defined(_MSC_VER) || defined(__BORLANDC__)
#include <io.h> #include <io.h>
#else #else
#include <unistd.h> #include <unistd.h>
Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/message_unittest.cc
Expand Up @@ -37,7 +37,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#if defined(_MSC_VER) || defined(_CPPBUILDER) #if defined(_MSC_VER) || defined(__BORLANDC__)
#include <io.h> #include <io.h>
#else #else
#include <unistd.h> #include <unistd.h>
Expand Down
4 changes: 2 additions & 2 deletions src/google/protobuf/stubs/hash.h
Expand Up @@ -35,7 +35,7 @@
#ifndef GOOGLE_PROTOBUF_STUBS_HASH_H__ #ifndef GOOGLE_PROTOBUF_STUBS_HASH_H__
#define GOOGLE_PROTOBUF_STUBS_HASH_H__ #define GOOGLE_PROTOBUF_STUBS_HASH_H__


#ifdef _CPPBUILDER #ifdef __BORLANDC__
#include <string> #include <string>
#else #else
#include <string.h> #include <string.h>
Expand Down Expand Up @@ -102,7 +102,7 @@ template <typename Key,
class hash_set : public std::set<Key, HashFcn> { class hash_set : public std::set<Key, HashFcn> {
}; };


#elif (defined(_MSC_VER) || defined(_CPPBUILDER)) && !defined(_STLPORT_VERSION) #elif (defined(_MSC_VER) || defined(__BORLANDC__)) && !defined(_STLPORT_VERSION)


template <typename Key> template <typename Key>
struct hash : public HASH_NAMESPACE::hash_compare<Key> { struct hash : public HASH_NAMESPACE::hash_compare<Key> {
Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/testing/file.cc
Expand Up @@ -40,7 +40,7 @@
#include <windows.h> // Find*File(). :( #include <windows.h> // Find*File(). :(
#include <io.h> #include <io.h>
#include <direct.h> #include <direct.h>
#elif defined(_CPPBUILDER) #elif defined(__BORLANDC__)
#include <dir.h> #include <dir.h>
#include <dirent.h> #include <dirent.h>
#include <io.h> #include <io.h>
Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/testing/googletest.cc
Expand Up @@ -41,7 +41,7 @@
#if defined(_MSC_VER) #if defined(_MSC_VER)
#include <io.h> #include <io.h>
#include <direct.h> #include <direct.h>
#elif defined(_CPPBUILDER) #elif defined(__BORLANDC__)
#include <dir.h> #include <dir.h>
#include <io.h> #include <io.h>
#else #else
Expand Down

1 comment on commit 4decb96

@saadware
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixed #2

Please sign in to comment.