Consistency in Windows ifdefs/windows.h includes

Changing all defined(_WINDOWS) to defined(_WIN32)

Defining WIN32_LEAN_AND_MEAN in all files except those in Archutils/Win32
This commit is contained in:
sukibaby
2024-06-24 15:48:05 -07:00
committed by teejusb
parent 65fe06bcd3
commit 0447d9ae58
34 changed files with 84 additions and 69 deletions
+3 -2
View File
@@ -21,7 +21,8 @@
#include <vector> #include <vector>
// only used for Version() // only used for Version()
#if defined(_WINDOWS) #if defined(_WIN32)
#define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#include <conio.h> #include <conio.h>
#endif #endif
@@ -51,7 +52,7 @@ static void LuaInformation()
* regardless of any preferences (tested by shakesoda on Mac). -aj */ * regardless of any preferences (tested by shakesoda on Mac). -aj */
static void Version() static void Version()
{ {
#if defined(WIN32) #if defined(_WIN32)
RString sProductID = ssprintf("%s", (std::string(PRODUCT_FAMILY) + product_version).c_str() ); RString sProductID = ssprintf("%s", (std::string(PRODUCT_FAMILY) + product_version).c_str() );
RString sVersion = ssprintf("build %s\nCompile Date: %s @ %s", ::sm_version_git_hash, version_date, version_time); RString sVersion = ssprintf("build %s\nCompile Date: %s @ %s", ::sm_version_git_hash, version_date, version_time);
+1 -1
View File
@@ -4,7 +4,7 @@
#include <cstdint> #include <cstdint>
#include <cstdio> #include <cstdio>
#if defined(_WINDOWS) #if defined(_WIN32)
#include <tchar.h> #include <tchar.h>
#else #else
#define _tcslen strlen #define _tcslen strlen
+1 -1
View File
@@ -171,7 +171,7 @@ RString RageDisplay::GetStats() const
s = ssprintf( "%i FPS\n%i av FPS\n%i VPF", GetFPS(), GetCumFPS(), GetVPF() ); s = ssprintf( "%i FPS\n%i av FPS\n%i VPF", GetFPS(), GetCumFPS(), GetVPF() );
// #if defined(_WINDOWS) // #if defined(_WIN32)
s += "\n"+this->GetApiDescription(); s += "\n"+this->GetApiDescription();
// #endif // #endif
+1 -1
View File
@@ -549,7 +549,7 @@ RString RageDisplay_Legacy::Init( const VideoModeParams &p, bool bAllowUnacceler
LOG->Warn( "Low-performance OpenGL renderer: %s", sError.c_str() ); LOG->Warn( "Low-performance OpenGL renderer: %s", sError.c_str() );
} }
#if defined(_WINDOWS) #if defined(_WIN32)
/* GLDirect is a Direct3D wrapper for OpenGL. It's rather buggy; and if in /* GLDirect is a Direct3D wrapper for OpenGL. It's rather buggy; and if in
* any case GLDirect can successfully render us, we should be able to do so * any case GLDirect can successfully render us, we should be able to do so
* too using Direct3D directly. (If we can't, it's a bug that we can work * too using Direct3D directly. (If we can't, it's a bug that we can work
+2 -1
View File
@@ -6,7 +6,8 @@
#include <cstdint> #include <cstdint>
#if defined(WIN32) #if defined(_WIN32)
#define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#endif #endif
+2 -1
View File
@@ -7,7 +7,8 @@
#include <cstdarg> #include <cstdarg>
#include <cstdint> #include <cstdint>
#if defined(_WINDOWS) && defined(DEBUG) #if defined(_WIN32) && defined(DEBUG)
#define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#elif defined(MACOSX) #elif defined(MACOSX)
#include "archutils/Darwin/Crash.h" #include "archutils/Darwin/Crash.h"
+1 -1
View File
@@ -9,7 +9,7 @@
#include <cstdint> #include <cstdint>
#include <memory> #include <memory>
#if defined(_WINDOWS) #if defined(_WIN32)
#include "zlib.h" #include "zlib.h"
#if defined(_MSC_VER) #if defined(_MSC_VER)
#if defined(BINARY_ZDL) #if defined(BINARY_ZDL)
+11 -12
View File
@@ -14,17 +14,16 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#if !defined(WIN32) #if defined(_WIN32)
#include "archutils/Win32/ErrorStrings.h"
#if defined(HAVE_DIRENT_H) #define WIN32_LEAN_AND_MEAN
#include <dirent.h> #include <windows.h>
#endif #include <io.h>
#else #else
#include "archutils/Win32/ErrorStrings.h" #if defined(HAVE_DIRENT_H)
#include <windows.h> #include <dirent.h>
#include <io.h> #endif
#endif // !defined(WIN32) #endif
/* Direct filesystem access: */ /* Direct filesystem access: */
static struct FileDriverEntry_DIR: public FileDriverEntry static struct FileDriverEntry_DIR: public FileDriverEntry
@@ -255,7 +254,7 @@ RageFileObjDirect::RageFileObjDirect( const RString &sPath, int iFD, int iMode )
namespace namespace
{ {
#if !defined(WIN32) #if !defined(_WIN32)
bool FlushDir( RString sPath, RString &sError ) bool FlushDir( RString sPath, RString &sError )
{ {
/* Wait for the directory to be flushed. */ /* Wait for the directory to be flushed. */
@@ -351,7 +350,7 @@ RageFileObjDirect::~RageFileObjDirect()
RString sOldPath = MakeTempFilename(m_sPath); RString sOldPath = MakeTempFilename(m_sPath);
RString sNewPath = m_sPath; RString sNewPath = m_sPath;
#if defined(WIN32) #if defined(_WIN32)
if( WinMoveFile(DoPathReplace(sOldPath), DoPathReplace(sNewPath)) ) if( WinMoveFile(DoPathReplace(sOldPath), DoPathReplace(sNewPath)) )
return; return;
+12 -13
View File
@@ -8,15 +8,14 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#if !defined(WIN32) #if defined(_WIN32)
#define WIN32_LEAN_AND_MEAN
#if defined(HAVE_DIRENT_H) #include <windows.h>
#include <dirent.h> #include <io.h>
#endif
#else #else
#include <windows.h> #if defined(HAVE_DIRENT_H)
#include <io.h> #include <dirent.h>
#endif
#endif #endif
RString DoPathReplace(const RString &sPath) RString DoPathReplace(const RString &sPath)
@@ -26,7 +25,7 @@ RString DoPathReplace(const RString &sPath)
} }
#if defined(WIN32) #if defined(_WIN32)
static bool WinMoveFileInternal( const RString &sOldPath, const RString &sNewPath ) static bool WinMoveFileInternal( const RString &sOldPath, const RString &sNewPath )
{ {
static bool Win9x = false; static bool Win9x = false;
@@ -94,7 +93,7 @@ bool CreateDirectories( RString Path )
curpath += "/"; curpath += "/";
curpath += parts[i]; curpath += parts[i];
#if defined(WIN32) #if defined(_WIN32)
if( curpath.size() == 2 && curpath[1] == ':' ) /* C: */ if( curpath.size() == 2 && curpath[1] == ':' ) /* C: */
{ {
/* Don't try to create the drive letter alone. */ /* Don't try to create the drive letter alone. */
@@ -105,7 +104,7 @@ bool CreateDirectories( RString Path )
if( DoMkdir(curpath, 0777) == 0 ) if( DoMkdir(curpath, 0777) == 0 )
continue; continue;
#if defined(WIN32) #if defined(_WIN32)
/* When creating a directory that already exists over Samba, Windows is /* When creating a directory that already exists over Samba, Windows is
* returning ENOENT instead of EEXIST. */ * returning ENOENT instead of EEXIST. */
/* I can't reproduce this anymore. If we get ENOENT, log it but keep /* I can't reproduce this anymore. If we get ENOENT, log it but keep
@@ -170,7 +169,7 @@ void DirectFilenameDB::CacheFile( const RString &sPath )
while( !pFileSet->m_bFilled ) while( !pFileSet->m_bFilled )
m_Mutex.Wait(); m_Mutex.Wait();
#if defined(WIN32) #if defined(_WIN32)
// There is almost surely a better way to do this // There is almost surely a better way to do this
WIN32_FIND_DATA fd; WIN32_FIND_DATA fd;
HANDLE hFind = DoFindFirstFile( root+sPath, &fd ); HANDLE hFind = DoFindFirstFile( root+sPath, &fd );
@@ -220,7 +219,7 @@ void DirectFilenameDB::PopulateFileSet( FileSet &fs, const RString &path )
fs.age.GetDeltaTime(); // reset fs.age.GetDeltaTime(); // reset
fs.files.clear(); fs.files.clear();
#if defined(WIN32) #if defined(_WIN32)
WIN32_FIND_DATA fd; WIN32_FIND_DATA fd;
if ( sPath.size() > 0 && sPath.Right(1) == "/" ) if ( sPath.size() > 0 && sPath.Right(1) == "/" )
+4 -3
View File
@@ -15,7 +15,8 @@
#include <sstream> #include <sstream>
#include <vector> #include <vector>
#if defined(WIN32) #if defined(_WIN32)
#define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#elif defined(UNIX) || defined(MACOSX) #elif defined(UNIX) || defined(MACOSX)
#include <paths.h> #include <paths.h>
@@ -339,7 +340,7 @@ static RString GetDirOfExecutable( RString argv0 )
// argv[0] can be wrong in most OS's; try to avoid using it. // argv[0] can be wrong in most OS's; try to avoid using it.
RString sPath; RString sPath;
#if defined(WIN32) #if defined(_WIN32)
char szBuf[MAX_PATH]; char szBuf[MAX_PATH];
GetModuleFileName( nullptr, szBuf, sizeof(szBuf) ); GetModuleFileName( nullptr, szBuf, sizeof(szBuf) );
sPath = szBuf; sPath = szBuf;
@@ -352,7 +353,7 @@ static RString GetDirOfExecutable( RString argv0 )
bool bIsAbsolutePath = false; bool bIsAbsolutePath = false;
if( sPath.size() == 0 || sPath[0] == '/' ) if( sPath.size() == 0 || sPath[0] == '/' )
bIsAbsolutePath = true; bIsAbsolutePath = true;
#if defined(WIN32) #if defined(_WIN32)
if( sPath.size() > 2 && sPath[1] == ':' && sPath[2] == '/' ) if( sPath.size() > 2 && sPath[1] == ':' && sPath[2] == '/' )
bIsAbsolutePath = true; bIsAbsolutePath = true;
#endif #endif
+2 -2
View File
@@ -9,7 +9,7 @@
#include <map> #include <map>
#include <vector> #include <vector>
#if defined(_WINDOWS) #if defined(_WIN32)
#include <windows.h> #include <windows.h>
#endif #endif
@@ -183,7 +183,7 @@ void RageLog::SetShowLogOutput( bool show )
{ {
m_bShowLogOutput = show; m_bShowLogOutput = show;
#if defined(WIN32) #if defined(_WIN32)
if( m_bShowLogOutput ) if( m_bShowLogOutput )
{ {
// create a new console window and attach standard handles // create a new console window and attach standard handles
+1 -1
View File
@@ -133,7 +133,7 @@ RageMatrix RageMatrix::GetTranspose() const
void RageMatrixMultiply( RageMatrix* pOut, const RageMatrix* pA, const RageMatrix* pB ) void RageMatrixMultiply( RageMatrix* pOut, const RageMatrix* pA, const RageMatrix* pB )
{ {
//#if defined(_WINDOWS) //#if defined(_WIN32)
// // <30 cycles for theirs versus >100 for ours. // // <30 cycles for theirs versus >100 for ours.
// D3DXMatrixMultiply( (D3DMATRIX*)pOut, (D3DMATRIX*)pA, (D3DMATRIX*)pB ); // D3DXMatrixMultiply( (D3DMATRIX*)pOut, (D3DMATRIX*)pA, (D3DMATRIX*)pB );
//#else //#else
+1 -1
View File
@@ -24,7 +24,7 @@
#include "arch/Dialog/Dialog.h" #include "arch/Dialog/Dialog.h"
#if defined(CRASH_HANDLER) #if defined(CRASH_HANDLER)
#if defined(_WINDOWS) #if defined(_WIN32)
#include "archutils/Win32/crash.h" #include "archutils/Win32/crash.h"
#elif defined(LINUX) || defined(MACOSX) #elif defined(LINUX) || defined(MACOSX)
#include "archutils/Unix/CrashHandler.h" #include "archutils/Unix/CrashHandler.h"
+2 -1
View File
@@ -5,9 +5,10 @@
#include <vector> #include <vector>
#if defined(_WINDOWS) #if defined(_WIN32)
#include "archutils/Win32/ErrorStrings.h" #include "archutils/Win32/ErrorStrings.h"
#define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
/* Convert from the given codepage to UTF-8. Return true if successful. */ /* Convert from the given codepage to UTF-8. Return true if successful. */
+6 -5
View File
@@ -73,7 +73,8 @@
#include <ctime> #include <ctime>
#include <vector> #include <vector>
#if defined(WIN32) #if defined(_WIN32)
#define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#endif #endif
@@ -386,13 +387,13 @@ RString StepMania::GetSelectMusicScreen()
return SELECT_MUSIC_SCREEN.GetValue(); return SELECT_MUSIC_SCREEN.GetValue();
} }
#if defined(WIN32) #if defined(_WIN32)
static Preference<int> g_iLastSeenMemory( "LastSeenMemory", 0 ); static Preference<int> g_iLastSeenMemory( "LastSeenMemory", 0 );
#endif #endif
static void AdjustForChangedSystemCapabilities() static void AdjustForChangedSystemCapabilities()
{ {
#if defined(WIN32) #if defined(_WIN32)
// Has the amount of memory changed? // Has the amount of memory changed?
MEMORYSTATUS mem; MEMORYSTATUS mem;
GlobalMemoryStatus(&mem); GlobalMemoryStatus(&mem);
@@ -429,7 +430,7 @@ static void AdjustForChangedSystemCapabilities()
#endif #endif
} }
#if defined(WIN32) #if defined(_WIN32)
#include "RageDisplay_D3D.h" #include "RageDisplay_D3D.h"
#include "archutils/Win32/VideoDriverInfo.h" #include "archutils/Win32/VideoDriverInfo.h"
#endif #endif
@@ -508,7 +509,7 @@ struct VideoCardDefaults
static RString GetVideoDriverName() static RString GetVideoDriverName()
{ {
#if defined(_WINDOWS) #if defined(_WIN32)
return GetPrimaryVideoDriverName(); return GetPrimaryVideoDriverName();
#else #else
return "OpenGL"; return "OpenGL";
@@ -316,7 +316,7 @@ InputHandler_SextetStream::~InputHandler_SextetStream()
REGISTER_INPUT_HANDLER_CLASS (SextetStreamFromFile); REGISTER_INPUT_HANDLER_CLASS (SextetStreamFromFile);
#if defined(_WINDOWS) #if defined(_WIN32)
#define DEFAULT_INPUT_FILENAME "\\\\.\\pipe\\StepMania-Input-SextetStream" #define DEFAULT_INPUT_FILENAME "\\\\.\\pipe\\StepMania-Input-SextetStream"
#else #else
#define DEFAULT_INPUT_FILENAME "Data/StepMania-Input-SextetStream.in" #define DEFAULT_INPUT_FILENAME "Data/StepMania-Input-SextetStream.in"
@@ -5,6 +5,7 @@
#include <vector> #include <vector>
#define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#include <mmsystem.h> #include <mmsystem.h>
@@ -4,6 +4,7 @@
#include "InputHandler.h" #include "InputHandler.h"
#include "RageThreads.h" #include "RageThreads.h"
#define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#include <string> #include <string>
#include <vector> #include <vector>
@@ -8,6 +8,7 @@
#include <cstdint> #include <cstdint>
#include <vector> #include <vector>
#define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#include <process.h> #include <process.h>
@@ -3,6 +3,7 @@
#include "global.h" #include "global.h"
#include "LightsDriver_PacDrive.h" #include "LightsDriver_PacDrive.h"
#define WIN32_LEAN_AND_MEAN
#include "windows.h" #include "windows.h"
#include "RageUtil.h" #include "RageUtil.h"
#include "Preference.h" #include "Preference.h"
@@ -93,7 +93,7 @@ void LightsDriver_SextetStream::Set(const LightsState *ls)
REGISTER_LIGHTS_DRIVER_CLASS(SextetStreamToFile); REGISTER_LIGHTS_DRIVER_CLASS(SextetStreamToFile);
#if defined(_WINDOWS) #if defined(_WIN32)
#define DEFAULT_OUTPUT_FILENAME "\\\\.\\pipe\\StepMania-Lights-SextetStream" #define DEFAULT_OUTPUT_FILENAME "\\\\.\\pipe\\StepMania-Lights-SextetStream"
#else #else
#define DEFAULT_OUTPUT_FILENAME "Data/StepMania-Lights-SextetStream.out" #define DEFAULT_OUTPUT_FILENAME "Data/StepMania-Lights-SextetStream.out"
@@ -6,6 +6,7 @@
#include "global.h" #include "global.h"
#include "LightsDriver_Win32Minimaid.h" #include "LightsDriver_Win32Minimaid.h"
#define WIN32_LEAN_AND_MEAN
#include "windows.h" #include "windows.h"
REGISTER_LIGHTS_DRIVER_CLASS( Win32Minimaid ); REGISTER_LIGHTS_DRIVER_CLASS( Win32Minimaid );
@@ -1,5 +1,6 @@
#include "global.h" #include "global.h"
#include "LightsDriver_Win32Parallel.h" #include "LightsDriver_Win32Parallel.h"
#define WIN32_LEAN_AND_MEAN
#include "windows.h" #include "windows.h"
#include "RageUtil.h" #include "RageUtil.h"
@@ -1,5 +1,6 @@
#include "global.h" #include "global.h"
#include "LightsDriver_Win32Serial.h" #include "LightsDriver_Win32Serial.h"
#define WIN32_LEAN_AND_MEAN
#include "windows.h" #include "windows.h"
#include "RageUtil.h" #include "RageUtil.h"
@@ -7,6 +7,7 @@
#include "archutils/win32/WindowIcon.h" #include "archutils/win32/WindowIcon.h"
#include "archutils/win32/ErrorStrings.h" #include "archutils/win32/ErrorStrings.h"
#include "arch/ArchHooks/ArchHooks.h" #include "arch/ArchHooks/ArchHooks.h"
#define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#include "CommCtrl.h" #include "CommCtrl.h"
#include "RageSurface_Load.h" #include "RageSurface_Load.h"
@@ -4,6 +4,7 @@
#define LOADING_WINDOW_WIN32_H #define LOADING_WINDOW_WIN32_H
#include "LoadingWindow.h" #include "LoadingWindow.h"
#define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#include "archutils/Win32/AppInstance.h" #include "archutils/Win32/AppInstance.h"
@@ -4,6 +4,7 @@
#include "MemoryCardDriver.h" #include "MemoryCardDriver.h"
#include <vector> #include <vector>
#define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
+1 -1
View File
@@ -8,7 +8,7 @@
#include <cmath> #include <cmath>
#include <cstdint> #include <cstdint>
#if defined(_WINDOWS) #if defined(_WIN32)
#include <mmsystem.h> #include <mmsystem.h>
#endif #endif
#define DIRECTSOUND_VERSION 0x0700 #define DIRECTSOUND_VERSION 0x0700
+1 -1
View File
@@ -3,7 +3,7 @@
#include <cstdint> #include <cstdint>
#if defined(_WINDOWS) #if defined(_WIN32)
#include <windows.h> #include <windows.h>
#include <wtypes.h> #include <wtypes.h>
#endif #endif
+1
View File
@@ -16,6 +16,7 @@
#define DEFINE_WAVEFORMATEX_GUID(x) (USHORT)(x), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71 #define DEFINE_WAVEFORMATEX_GUID(x) (USHORT)(x), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71
#endif #endif
#define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#include <winioctl.h> #include <winioctl.h>
#include <ks.h> #include <ks.h>
+1 -1
View File
@@ -4,7 +4,7 @@
#include <cstdint> #include <cstdint>
#include "Threads.h" #include "Threads.h"
#if defined(_WINDOWS) #if defined(_WIN32)
# include <windows.h> # include <windows.h>
#else #else
# include <windef.h> # include <windef.h>
+1 -1
View File
@@ -1,6 +1,6 @@
#if defined(ANDROID) #if defined(ANDROID)
#include "Android/SpecialDirs.h" #include "Android/SpecialDirs.h"
#elif defined(_WINDOWS) #elif defined(_WIN32)
#include "Win32/SpecialDirs.h" #include "Win32/SpecialDirs.h"
#elif defined(MACOSX) #elif defined(MACOSX)
#include "Darwin/SpecialDirs.h" #include "Darwin/SpecialDirs.h"
+16 -16
View File
@@ -3,31 +3,31 @@
#include <cstdlib> #include <cstdlib>
#if defined(HAVE_UNISTD_H) #if defined(HAVE_UNISTD_H)
#include <unistd.h> #include <unistd.h>
#endif #endif
#if defined(_WINDOWS) #if defined(_WIN32)
# if defined(CRASH_HANDLER) #if defined(CRASH_HANDLER)
# define _WIN32_WINDOWS 0x0410 // include Win98 stuff #define WIN32_LEAN_AND_MEAN
# include "windows.h" #include "windows.h"
# include "archutils/Win32/Crash.h" #include "archutils/Win32/Crash.h"
# endif #endif
# if defined(_MSC_VER) #if defined(_MSC_VER)
# include <intrin.h> #include <intrin.h>
# endif #endif
#elif defined(MACOSX) #elif defined(MACOSX)
# include "archutils/Darwin/Crash.h" #include "archutils/Darwin/Crash.h"
using CrashHandler::IsDebuggerPresent; using CrashHandler::IsDebuggerPresent;
using CrashHandler::DebugBreak; using CrashHandler::DebugBreak;
#endif #endif
#if defined(CRASH_HANDLER) && (defined(UNIX) || defined(MACOSX)) #if defined(CRASH_HANDLER) && (defined(UNIX) || defined(MACOSX))
#include "archutils/Unix/CrashHandler.h" #include "archutils/Unix/CrashHandler.h"
#endif #endif
void sm_crash( const char *reason ) void sm_crash( const char *reason )
{ {
#if ( defined(_WINDOWS) && defined(CRASH_HANDLER) ) || defined(MACOSX) || defined(_XDBG) #if ( defined(_WIN32) && defined(CRASH_HANDLER) ) || defined(MACOSX) || defined(_XDBG)
/* If we're being debugged, throw a debug break so it'll suspend the process. */ /* If we're being debugged, throw a debug break so it'll suspend the process. */
if( IsDebuggerPresent() ) if( IsDebuggerPresent() )
{ {
@@ -46,7 +46,7 @@ void sm_crash( const char *reason )
for(;;); for(;;);
#endif #endif
#if defined(_WINDOWS) #if defined(_WIN32)
/* Do something after the above, so the call/return isn't optimized to a jmp; that /* Do something after the above, so the call/return isn't optimized to a jmp; that
* way, this function will appear in backtrace stack traces. */ * way, this function will appear in backtrace stack traces. */
#if defined(_MSC_VER) #if defined(_MSC_VER)
+1 -1
View File
@@ -13,7 +13,7 @@
#define __STDC_CONSTANT_MACROS #define __STDC_CONSTANT_MACROS
/* Platform-specific fixes. */ /* Platform-specific fixes. */
#if defined(WIN32) #if defined(_WIN32)
#include "archutils/Win32/arch_setup.h" #include "archutils/Win32/arch_setup.h"
#elif defined(PBBUILD) #elif defined(PBBUILD)
#include "archutils/Darwin/arch_setup.h" #include "archutils/Darwin/arch_setup.h"