Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Documentation/sources/Guide/Code/NMakefileCommon
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ OS_LDFLAGS = /NOLOGO /DLL /MANIFEST $(LD_OPTIMISE)
OS_BUNDLE_DIR = Win$(ABI) # 32 or 64

# set up flags
CXXDEFINES=/DWIN32 # OFX includes need this, Windows only auto-defines _WIN32
CXXFLAGS = $(OFX_INC_DIR) $(CXXDEFINES) $(OPTIMISE) $(OS_CXXFLAGS) $(VERBOSE)
LDFLAGS = $(LD_OPTIMISE) $(OS_LDFLAGS)

Expand Down
8 changes: 4 additions & 4 deletions Examples/Basic/Basic_2005.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\..\Include"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;BASIC_2005_EXPORTS"
PreprocessorDefinitions="_DEBUG;_USRDLL;BASIC_2005_EXPORTS"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
Expand Down Expand Up @@ -123,7 +123,7 @@
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..\..\Include"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;BASIC_2005_EXPORTS"
PreprocessorDefinitions="NDEBUG;_USRDLL;BASIC_2005_EXPORTS"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
Expand Down Expand Up @@ -203,7 +203,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\..\Include"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;BASIC_2005_EXPORTS"
PreprocessorDefinitions="_DEBUG;_USRDLL;BASIC_2005_EXPORTS"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
Expand Down Expand Up @@ -282,7 +282,7 @@
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..\..\Include"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;BASIC_2005_EXPORTS"
PreprocessorDefinitions="NDEBUG;_USRDLL;BASIC_2005_EXPORTS"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
Expand Down
4 changes: 2 additions & 2 deletions Examples/Custom/Custom_2005.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\..\Include"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;CUSTOM_2005_EXPORTS"
PreprocessorDefinitions="_DEBUG;_USRDLL;CUSTOM_2005_EXPORTS"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
Expand Down Expand Up @@ -120,7 +120,7 @@
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..\..\Include"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;CUSTOM_2005_EXPORTS"
PreprocessorDefinitions="NDEBUG;_USRDLL;CUSTOM_2005_EXPORTS"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
Expand Down
5 changes: 3 additions & 2 deletions Examples/Custom/custom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
crafted piece of image processing software.
*/

#ifdef WIN32
#ifdef _WIN32
#define NOMINMAX
#include <windows.h>
#endif

Expand Down Expand Up @@ -71,7 +72,7 @@ parseCustomParam(char *str, double &x, double &y)
void
writeCustomParam(char *str, int strlen, double x, double y)
{
#ifdef WIN32
#ifdef _WIN32
_snprintf(str, strlen, "%lg %lg", x, y);
#else
snprintf(str, strlen, "%lg %lg", x, y);
Expand Down
4 changes: 2 additions & 2 deletions Examples/DepthConverter/DepthConverter_2005.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\..\Include"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;DEPTHCONVERTER_EXPORTS"
PreprocessorDefinitions="_DEBUG;_USRDLL;DEPTHCONVERTER_EXPORTS"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
Expand Down Expand Up @@ -119,7 +119,7 @@
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..\..\Include"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;DEPTHCONVERTER_EXPORTS"
PreprocessorDefinitions="NDEBUG;_USRDLL;DEPTHCONVERTER_EXPORTS"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
Expand Down
4 changes: 2 additions & 2 deletions Examples/DrawSuite/DrawSuite_2005.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\..\Include"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;OVERLAY_2005_EXPORTS"
PreprocessorDefinitions="_DEBUG;_USRDLL;OVERLAY_2005_EXPORTS"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
Expand Down Expand Up @@ -120,7 +120,7 @@
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..\..\Include"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;OVERLAY_2005_EXPORTS"
PreprocessorDefinitions="NDEBUG;_USRDLL;OVERLAY_2005_EXPORTS"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
Expand Down
3 changes: 2 additions & 1 deletion Examples/DrawSuite/drawsuite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
and so do nothing.
*/

#ifdef WIN32
#ifdef _WIN32
#define NOMINMAX
#include <windows.h>
#endif

Expand Down
4 changes: 2 additions & 2 deletions Examples/Invert/Invert_2005.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\..\Include"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;INVERT_2005_EXPORTS"
PreprocessorDefinitions="_DEBUG;_USRDLL;INVERT_2005_EXPORTS"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
Expand Down Expand Up @@ -119,7 +119,7 @@
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..\..\Include"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;INVERT_2005_EXPORTS"
PreprocessorDefinitions="NDEBUG;_USRDLL;INVERT_2005_EXPORTS"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
Expand Down
3 changes: 2 additions & 1 deletion Examples/OpenGL/opengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
#ifdef __APPLE__
#include <OpenGL/gl.h>
#else
#if defined(WINDOWS)
#if defined(_WIN32)
#define NOMINMAX
#include <windows.h>
#endif
#include <GL/gl.h>
Expand Down
4 changes: 2 additions & 2 deletions Examples/Overlay/Overlay_2005.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\..\Include"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;OVERLAY_2005_EXPORTS"
PreprocessorDefinitions="_DEBUG;_USRDLL;OVERLAY_2005_EXPORTS"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
Expand Down Expand Up @@ -120,7 +120,7 @@
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..\..\Include"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;OVERLAY_2005_EXPORTS"
PreprocessorDefinitions="NDEBUG;_USRDLL;OVERLAY_2005_EXPORTS"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
Expand Down
3 changes: 2 additions & 1 deletion Examples/Overlay/overlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
and so do nothing.
*/

#ifdef WIN32
#ifdef _WIN32
#define NOMINMAX
#include <windows.h>
#endif

Expand Down
4 changes: 2 additions & 2 deletions Examples/Rectangle/Rectangle_2005.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\..\Include"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;RECTANGLE_2005_EXPORTS"
PreprocessorDefinitions="_DEBUG;_USRDLL;RECTANGLE_2005_EXPORTS"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
Expand Down Expand Up @@ -119,7 +119,7 @@
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..\..\Include"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;RECTANGLE_2005_EXPORTS"
PreprocessorDefinitions="NDEBUG;_USRDLL;RECTANGLE_2005_EXPORTS"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
Expand Down
4 changes: 2 additions & 2 deletions Examples/Test/Test_2005.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\..\Include"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;TEST_2005_EXPORTS"
PreprocessorDefinitions="_DEBUG;_USRDLL;TEST_2005_EXPORTS"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
Expand Down Expand Up @@ -119,7 +119,7 @@
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..\..\Include"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;TEST_2005_EXPORTS"
PreprocessorDefinitions="NDEBUG;_USRDLL;TEST_2005_EXPORTS"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
Expand Down
16 changes: 8 additions & 8 deletions HostSupport/HostSupport.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\include;include;expat-2.0.1\lib"
PreprocessorDefinitions="_CRTDBG_MAP_ALLOC;WIN32;WINDOWS;COMPILED_FROM_DSP;XML_STATIC"
PreprocessorDefinitions="_CRTDBG_MAP_ALLOC;COMPILED_FROM_DSP;XML_STATIC"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
Expand Down Expand Up @@ -107,7 +107,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\include;include;expat-2.0.1\lib"
PreprocessorDefinitions="_CRTDBG_MAP_ALLOC;WIN32;WINDOWS;COMPILED_FROM_DSP;XML_STATIC"
PreprocessorDefinitions="_CRTDBG_MAP_ALLOC;COMPILED_FROM_DSP;XML_STATIC"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
Expand Down Expand Up @@ -173,7 +173,7 @@
EnableIntrinsicFunctions="true"
FavorSizeOrSpeed="1"
AdditionalIncludeDirectories="..\include;include;expat-2.0.1\lib"
PreprocessorDefinitions="WIN32;WINDOWS;COMPILED_FROM_DSP;XML_STATIC"
PreprocessorDefinitions="COMPILED_FROM_DSP;XML_STATIC"
RuntimeLibrary="2"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
Expand Down Expand Up @@ -238,7 +238,7 @@
EnableIntrinsicFunctions="true"
FavorSizeOrSpeed="1"
AdditionalIncludeDirectories="..\include;include;expat-2.0.1\lib"
PreprocessorDefinitions="WIN32;WINDOWS;COMPILED_FROM_DSP;XML_STATIC"
PreprocessorDefinitions="COMPILED_FROM_DSP;XML_STATIC"
RuntimeLibrary="2"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
Expand Down Expand Up @@ -299,7 +299,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\include;include;expat-2.0.1\lib"
PreprocessorDefinitions="_CRTDBG_MAP_ALLOC;WIN32;WINDOWS;COMPILED_FROM_DSP;XML_STATIC"
PreprocessorDefinitions="_CRTDBG_MAP_ALLOC;COMPILED_FROM_DSP;XML_STATIC"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
Expand Down Expand Up @@ -363,7 +363,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\include;include;expat-2.0.1\lib"
PreprocessorDefinitions="_CRTDBG_MAP_ALLOC;WIN32;WINDOWS;COMPILED_FROM_DSP;XML_STATIC"
PreprocessorDefinitions="_CRTDBG_MAP_ALLOC;COMPILED_FROM_DSP;XML_STATIC"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
Expand Down Expand Up @@ -426,7 +426,7 @@
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..\include;include;expat-2.0.1\lib"
PreprocessorDefinitions="WIN32;WINDOWS;COMPILED_FROM_DSP;XML_STATIC"
PreprocessorDefinitions="COMPILED_FROM_DSP;XML_STATIC"
RuntimeLibrary="2"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
Expand Down Expand Up @@ -488,7 +488,7 @@
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..\include;include;expat-2.0.1\lib"
PreprocessorDefinitions="WIN32;WINDOWS;COMPILED_FROM_DSP;XML_STATIC"
PreprocessorDefinitions="COMPILED_FROM_DSP;XML_STATIC"
RuntimeLibrary="2"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
Expand Down
8 changes: 4 additions & 4 deletions HostSupport/examples/CacheDemo.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\include;..\..\include;..\expat-2.0.1\lib"
PreprocessorDefinitions="WIN32;WINDOWS;COMPILED_FROM_DSP;XML_STATIC"
PreprocessorDefinitions="COMPILED_FROM_DSP;XML_STATIC"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
Expand Down Expand Up @@ -121,7 +121,7 @@
EnableIntrinsicFunctions="true"
FavorSizeOrSpeed="1"
AdditionalIncludeDirectories="..\include;..\..\include;..\expat-2.0.1\lib"
PreprocessorDefinitions="WIN32;WINDOWS;COMPILED_FROM_DSP;XML_STATIC"
PreprocessorDefinitions="COMPILED_FROM_DSP;XML_STATIC"
RuntimeLibrary="2"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
Expand Down Expand Up @@ -197,7 +197,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\include;..\..\include;..\expat-2.0.1\lib"
PreprocessorDefinitions="WIN32;WINDOWS;COMPILED_FROM_DSP;XML_STATIC"
PreprocessorDefinitions="COMPILED_FROM_DSP;XML_STATIC"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
Expand Down Expand Up @@ -276,7 +276,7 @@
EnableIntrinsicFunctions="true"
FavorSizeOrSpeed="1"
AdditionalIncludeDirectories="..\include;..\..\include;..\expat-2.0.1\lib"
PreprocessorDefinitions="WIN32;WINDOWS;COMPILED_FROM_DSP;XML_STATIC"
PreprocessorDefinitions="COMPILED_FROM_DSP;XML_STATIC"
RuntimeLibrary="2"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
Expand Down
8 changes: 4 additions & 4 deletions HostSupport/examples/hostDemo.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\include;..\..\include;..\expat-2.0.1\lib"
PreprocessorDefinitions="_CRTDBG_MAP_ALLOC;WIN32;WINDOWS;COMPILED_FROM_DSP;XML_STATIC"
PreprocessorDefinitions="_CRTDBG_MAP_ALLOC;COMPILED_FROM_DSP;XML_STATIC"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
Expand Down Expand Up @@ -121,7 +121,7 @@
EnableIntrinsicFunctions="true"
FavorSizeOrSpeed="1"
AdditionalIncludeDirectories="..\include;..\..\include;..\expat-2.0.1\lib"
PreprocessorDefinitions="WIN32;WINDOWS;COMPILED_FROM_DSP;XML_STATIC"
PreprocessorDefinitions="COMPILED_FROM_DSP;XML_STATIC"
RuntimeLibrary="2"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
Expand Down Expand Up @@ -197,7 +197,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\include;..\..\include;..\expat-2.0.1\lib"
PreprocessorDefinitions="_CRTDBG_MAP_ALLOC;WIN32;WINDOWS;COMPILED_FROM_DSP;XML_STATIC"
PreprocessorDefinitions="_CRTDBG_MAP_ALLOC;COMPILED_FROM_DSP;XML_STATIC"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
Expand Down Expand Up @@ -276,7 +276,7 @@
EnableIntrinsicFunctions="true"
FavorSizeOrSpeed="1"
AdditionalIncludeDirectories="..\include;..\..\include;..\expat-2.0.1\lib"
PreprocessorDefinitions="WIN32;WINDOWS;COMPILED_FROM_DSP;XML_STATIC"
PreprocessorDefinitions="COMPILED_FROM_DSP;XML_STATIC"
RuntimeLibrary="2"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
Expand Down
7 changes: 4 additions & 3 deletions HostSupport/include/ofxhBinary.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <string>
#include <iostream>

#if defined(WIN32) || defined(WIN64)
#ifdef _WIN32
#define I386
#elif defined(__linux__) || defined(__FreeBSD__)
#define UNIX
Expand All @@ -25,7 +25,8 @@

#if defined(UNIX)
#include <dlfcn.h>
#elif defined (WINDOWS)
#elif defined (_WIN32)
#define NOMINMAX
#include "windows.h"
#include <assert.h>
#endif
Expand All @@ -44,7 +45,7 @@ namespace OFX
bool _invalid;
#if defined(UNIX)
void *_dlHandle;
#elif defined (WINDOWS)
#elif defined (_WIN32)
HINSTANCE _dlHandle;
#endif
time_t _time;
Expand Down
Loading
Loading