All the code that relies on separating them uses the built-in defines _WIN32 and _WIN64, or the corresponding machine defines (such as _M_IX86, for MSVC 32 bit inline assembly).
Unified · Split
| @@ -5,13 +5,11 @@ LDFLAGS += · 4 unmodified lines | ||
| 5 | 5 | ifeq ($(ENABLE64BIT), Yes) |
| 6 | 6 | ASMFLAGS += -f win64 |
| 7 | 7 | ASMFLAGS_PLATFORM = -DWIN64 |
| 8 | −CFLAGS += -DWIN64 | |
| 9 | 8 | CC = x86_64-w64-mingw32-gcc |
| 10 | 9 | CXX = x86_64-w64-mingw32-g++ |
| 11 | 10 | AR = x86_64-w64-mingw32-ar |
| 12 | 11 | else |
| 13 | 12 | ASMFLAGS += -f win32 -DPREFIX |
| 14 | −CFLAGS += -DWIN32 | |
| 15 | 13 | endif |
| 16 | 14 | EXEEXT = .exe |
| 17 | 15 | |
| @@ -3,13 +3,10 @@ ifeq ($(ASM_ARCH), x86) · 2 unmodified lines | ||
| 3 | 3 | ifeq ($(ENABLE64BIT), Yes) |
| 4 | 4 | ASMFLAGS += -f win64 |
| 5 | 5 | ASMFLAGS_PLATFORM = -DWIN64 |
| 6 | −CFLAGS += -DWIN64 | |
| 7 | 6 | else |
| 8 | 7 | ASMFLAGS += -f win32 -DPREFIX |
| 9 | −CFLAGS += -DWIN32 | |
| 10 | 8 | endif |
| 11 | 9 | else |
| 12 | −CFLAGS += -DWIN32 | |
| 13 | 10 | endif |
| 14 | 11 | ifeq ($(ASM_ARCH), arm) |
| 15 | 12 | CCAS = gas-preprocessor.pl -as-type armasm -force-thumb -- armasm |
| @@ -54,7 +54,7 @@ · 53 unmodified lines | ||
| 54 | 54 | Optimization="2" |
| 55 | 55 | InlineFunctionExpansion="1" |
| 56 | 56 | AdditionalIncludeDirectories="..\..\..\decoder\core\inc;..\..\..\common\inc;..\..\..\api\svc;..\..\..\hwDecoder\core\inc;..\..\..\hwDecoder\dxva\inc" |
| 57 | − PreprocessorDefinitions="WIN32;NDEBUG;_LIB;X86_ASM" | |
| 57 | + PreprocessorDefinitions="NDEBUG;_LIB;X86_ASM" | |
| 58 | 58 | StringPooling="true" |
| 59 | 59 | RuntimeLibrary="0" |
| 60 | 60 | EnableFunctionLevelLinking="true" |
| @@ -134,7 +134,7 @@ · 73 unmodified lines | ||
| 134 | 134 | Optimization="2" |
| 135 | 135 | InlineFunctionExpansion="1" |
| 136 | 136 | AdditionalIncludeDirectories="..\..\..\decoder\core\inc;..\..\..\common\inc;..\..\..\api\svc;..\..\..\hwDecoder\core\inc;..\..\..\hwDecoder\dxva\inc" |
| 137 | − PreprocessorDefinitions="WIN64;NDEBUG;_LIB;X86_ASM" | |
| 137 | + PreprocessorDefinitions="NDEBUG;_LIB;X86_ASM" | |
| 138 | 138 | StringPooling="true" |
| 139 | 139 | RuntimeLibrary="0" |
| 140 | 140 | EnableFunctionLevelLinking="true" |
| @@ -212,7 +212,7 @@ · 71 unmodified lines | ||
| 212 | 212 | Name="VCCLCompilerTool" |
| 213 | 213 | Optimization="0" |
| 214 | 214 | AdditionalIncludeDirectories="..\..\..\decoder\core\inc;..\..\..\common\inc;..\..\..\api\svc;..\..\..\hwDecoder\core\inc;..\..\..\hwDecoder\dxva\inc" |
| 215 | − PreprocessorDefinitions="WIN32;_DEBUG;_LIB;X86_ASM" | |
| 215 | + PreprocessorDefinitions="_DEBUG;_LIB;X86_ASM" | |
| 216 | 216 | MinimalRebuild="true" |
| 217 | 217 | BasicRuntimeChecks="3" |
| 218 | 218 | RuntimeLibrary="1" |
| @@ -291,7 +291,7 @@ · 72 unmodified lines | ||
| 291 | 291 | Name="VCCLCompilerTool" |
| 292 | 292 | Optimization="0" |
| 293 | 293 | AdditionalIncludeDirectories="..\..\..\decoder\core\inc;..\..\..\common\inc;..\..\..\api\svc;..\..\..\hwDecoder\core\inc;..\..\..\hwDecoder\dxva\inc" |
| 294 | − PreprocessorDefinitions="WIN64;_DEBUG;_LIB;X86_ASM" | |
| 294 | + PreprocessorDefinitions="_DEBUG;_LIB;X86_ASM" | |
| 295 | 295 | MinimalRebuild="true" |
| 296 | 296 | BasicRuntimeChecks="3" |
| 297 | 297 | RuntimeLibrary="1" |
| @@ -54,7 +54,7 @@ · 53 unmodified lines | ||
| 54 | 54 | Optimization="2" |
| 55 | 55 | InlineFunctionExpansion="1" |
| 56 | 56 | AdditionalIncludeDirectories="..\..\..\decoder\plus\inc;..\..\..\decoder\core\inc;..\..\..\api\svc;..\..\..\common\inc;..\..\..\hwDecoder\plus\inc;..\..\..\hwDecoder\core\inc" |
| 57 | − PreprocessorDefinitions="WIN32;NDEBUG;_USRDLL;X86_ASM" | |
| 57 | + PreprocessorDefinitions="NDEBUG;_USRDLL;X86_ASM" | |
| 58 | 58 | StringPooling="true" |
| 59 | 59 | RuntimeLibrary="0" |
| 60 | 60 | EnableFunctionLevelLinking="true" |
| @@ -154,7 +154,7 @@ · 93 unmodified lines | ||
| 154 | 154 | Optimization="2" |
| 155 | 155 | InlineFunctionExpansion="1" |
| 156 | 156 | AdditionalIncludeDirectories="..\..\..\decoder\plus\inc;..\..\..\decoder\core\inc;..\..\..\api\svc;..\..\..\common\inc;..\..\..\hwDecoder\plus\inc;..\..\..\hwDecoder\core\inc" |
| 157 | − PreprocessorDefinitions="WIN64;NDEBUG;_USRDLL;X86_ASM" | |
| 157 | + PreprocessorDefinitions="NDEBUG;_USRDLL;X86_ASM" | |
| 158 | 158 | StringPooling="true" |
| 159 | 159 | RuntimeLibrary="0" |
| 160 | 160 | EnableFunctionLevelLinking="true" |
| @@ -253,7 +253,7 @@ · 92 unmodified lines | ||
| 253 | 253 | Name="VCCLCompilerTool" |
| 254 | 254 | Optimization="0" |
| 255 | 255 | AdditionalIncludeDirectories="..\..\..\decoder\plus\inc;..\..\..\decoder\core\inc;..\..\..\api\svc;..\..\..\common\inc;..\..\..\hwDecoder\plus\inc;..\..\..\hwDecoder\core\inc" |
| 256 | − PreprocessorDefinitions="WIN32;_DEBUG;_USRDLL;X86_ASM" | |
| 256 | + PreprocessorDefinitions="_DEBUG;_USRDLL;X86_ASM" | |
| 257 | 257 | MinimalRebuild="true" |
| 258 | 258 | BasicRuntimeChecks="3" |
| 259 | 259 | RuntimeLibrary="1" |
| @@ -350,7 +350,7 @@ · 90 unmodified lines | ||
| 350 | 350 | Name="VCCLCompilerTool" |
| 351 | 351 | Optimization="0" |
| 352 | 352 | AdditionalIncludeDirectories="..\..\..\decoder\plus\inc;..\..\..\decoder\core\inc;..\..\..\api\svc;..\..\..\common\inc;..\..\..\hwDecoder\plus\inc;..\..\..\hwDecoder\core\inc" |
| 353 | − PreprocessorDefinitions="WIN64;_DEBUG;_USRDLL;X86_ASM" | |
| 353 | + PreprocessorDefinitions="_DEBUG;_USRDLL;X86_ASM" | |
| 354 | 354 | MinimalRebuild="true" |
| 355 | 355 | BasicRuntimeChecks="3" |
| 356 | 356 | RuntimeLibrary="1" |
| @@ -50,7 +50,7 @@ · 49 unmodified lines | ||
| 50 | 50 | Optimization="2" |
| 51 | 51 | InlineFunctionExpansion="1" |
| 52 | 52 | AdditionalIncludeDirectories="..\..\..\console\dec\inc,..\..\..\api\svc,..\..\..\common\inc,..\..\..\encoder\core\inc" |
| 53 | − PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" | |
| 53 | + PreprocessorDefinitions="NDEBUG;_CONSOLE" | |
| 54 | 54 | StringPooling="true" |
| 55 | 55 | RuntimeLibrary="0" |
| 56 | 56 | EnableFunctionLevelLinking="true" |
| @@ -143,7 +143,7 @@ · 86 unmodified lines | ||
| 143 | 143 | Optimization="2" |
| 144 | 144 | InlineFunctionExpansion="1" |
| 145 | 145 | AdditionalIncludeDirectories="..\..\..\console\dec\inc,..\..\..\api\svc,..\..\..\common\inc,..\..\..\encoder\core\inc" |
| 146 | − PreprocessorDefinitions="WIN64;NDEBUG;_CONSOLE" | |
| 146 | + PreprocessorDefinitions="NDEBUG;_CONSOLE" | |
| 147 | 147 | StringPooling="true" |
| 148 | 148 | RuntimeLibrary="0" |
| 149 | 149 | EnableFunctionLevelLinking="true" |
| @@ -234,7 +234,7 @@ · 84 unmodified lines | ||
| 234 | 234 | Name="VCCLCompilerTool" |
| 235 | 235 | Optimization="0" |
| 236 | 236 | AdditionalIncludeDirectories="..\..\..\console\dec\inc,..\..\..\api\svc,..\..\..\common\inc,..\..\..\decoder\core\inc,..\..\..\encoder\core\inc" |
| 237 | − PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE" | |
| 237 | + PreprocessorDefinitions="_DEBUG;_CONSOLE" | |
| 238 | 238 | MinimalRebuild="true" |
| 239 | 239 | BasicRuntimeChecks="3" |
| 240 | 240 | RuntimeLibrary="1" |
| @@ -328,7 +328,7 @@ · 87 unmodified lines | ||
| 328 | 328 | Name="VCCLCompilerTool" |
| 329 | 329 | Optimization="0" |
| 330 | 330 | AdditionalIncludeDirectories="..\..\..\console\dec\inc,..\..\..\api\svc,..\..\..\common\inc,..\..\..\decoder\core\inc,..\..\..\encoder\core\inc" |
| 331 | − PreprocessorDefinitions="WIN64;_DEBUG;_CONSOLE" | |
| 331 | + PreprocessorDefinitions="_DEBUG;_CONSOLE" | |
| 332 | 332 | MinimalRebuild="true" |
| 333 | 333 | BasicRuntimeChecks="3" |
| 334 | 334 | RuntimeLibrary="1" |
| @@ -53,7 +53,7 @@ · 52 unmodified lines | ||
| 53 | 53 | Name="VCCLCompilerTool" |
| 54 | 54 | Optimization="0" |
| 55 | 55 | AdditionalIncludeDirectories="..\..\..\common\inc;..\..\..\encoder\core\inc,..\..\..\api\svc;..\..\..\processing\interface" |
| 56 | − PreprocessorDefinitions="WIN32;_DEBUG;_LIB;X86_ASM" | |
| 56 | + PreprocessorDefinitions="_DEBUG;_LIB;X86_ASM" | |
| 57 | 57 | MinimalRebuild="true" |
| 58 | 58 | BasicRuntimeChecks="3" |
| 59 | 59 | RuntimeLibrary="1" |
| @@ -133,7 +133,7 @@ · 73 unmodified lines | ||
| 133 | 133 | Name="VCCLCompilerTool" |
| 134 | 134 | Optimization="0" |
| 135 | 135 | AdditionalIncludeDirectories="..\..\..\common\inc;..\..\..\encoder\core\inc,..\..\..\api\svc;..\..\..\processing\interface" |
| 136 | − PreprocessorDefinitions="WIN64;_DEBUG;_LIB;X86_ASM" | |
| 136 | + PreprocessorDefinitions="_DEBUG;_LIB;X86_ASM" | |
| 137 | 137 | MinimalRebuild="true" |
| 138 | 138 | BasicRuntimeChecks="3" |
| 139 | 139 | RuntimeLibrary="1" |
| @@ -215,7 +215,7 @@ · 75 unmodified lines | ||
| 215 | 215 | FavorSizeOrSpeed="1" |
| 216 | 216 | WholeProgramOptimization="true" |
| 217 | 217 | AdditionalIncludeDirectories="..\..\..\common\inc;..\..\..\encoder\core\inc,..\..\..\api\svc;..\..\..\processing\interface" |
| 218 | − PreprocessorDefinitions="WIN32;NDEBUG;_LIB;X86_ASM" | |
| 218 | + PreprocessorDefinitions="NDEBUG;_LIB;X86_ASM" | |
| 219 | 219 | StringPooling="true" |
| 220 | 220 | RuntimeLibrary="0" |
| 221 | 221 | EnableFunctionLevelLinking="true" |
| @@ -299,7 +299,7 @@ · 77 unmodified lines | ||
| 299 | 299 | FavorSizeOrSpeed="1" |
| 300 | 300 | WholeProgramOptimization="true" |
| 301 | 301 | AdditionalIncludeDirectories="..\..\..\common\inc;..\..\..\encoder\core\inc,..\..\..\api\svc;..\..\..\processing\interface" |
| 302 | − PreprocessorDefinitions="WIN64;NDEBUG;_LIB;X86_ASM" | |
| 302 | + PreprocessorDefinitions="NDEBUG;_LIB;X86_ASM" | |
| 303 | 303 | StringPooling="true" |
| 304 | 304 | RuntimeLibrary="0" |
| 305 | 305 | EnableFunctionLevelLinking="true" |
| @@ -53,7 +53,7 @@ · 52 unmodified lines | ||
| 53 | 53 | Name="VCCLCompilerTool" |
| 54 | 54 | Optimization="0" |
| 55 | 55 | AdditionalIncludeDirectories="..\..\..\encoder\plus\inc;..\..\..\encoder\core\inc;..\..\..\api\svc;..\..\..\common\inc;..\..\..\processing\interface" |
| 56 | − PreprocessorDefinitions="WIN32;_DEBUG;_USRDLL;X86_ASM" | |
| 56 | + PreprocessorDefinitions="_DEBUG;_USRDLL;X86_ASM" | |
| 57 | 57 | MinimalRebuild="true" |
| 58 | 58 | BasicRuntimeChecks="3" |
| 59 | 59 | RuntimeLibrary="1" |
| @@ -152,7 +152,7 @@ · 92 unmodified lines | ||
| 152 | 152 | Name="VCCLCompilerTool" |
| 153 | 153 | Optimization="0" |
| 154 | 154 | AdditionalIncludeDirectories="..\..\..\encoder\plus\inc;..\..\..\encoder\core\inc;..\..\..\api\svc;..\..\..\common\inc;..\..\..\processing\interface" |
| 155 | − PreprocessorDefinitions="WIN64;_DEBUG;_USRDLL;X86_ASM" | |
| 155 | + PreprocessorDefinitions="_DEBUG;_USRDLL;X86_ASM" | |
| 156 | 156 | MinimalRebuild="true" |
| 157 | 157 | BasicRuntimeChecks="3" |
| 158 | 158 | RuntimeLibrary="1" |
| @@ -255,7 +255,7 @@ · 96 unmodified lines | ||
| 255 | 255 | EnableFiberSafeOptimizations="true" |
| 256 | 256 | WholeProgramOptimization="true" |
| 257 | 257 | AdditionalIncludeDirectories="..\..\..\encoder\plus\inc;..\..\..\encoder\core\inc;..\..\..\api\svc;..\..\..\common\inc;..\..\..\processing\interface" |
| 258 | − PreprocessorDefinitions="WIN32;NDEBUG;_USRDLL;X86_ASM" | |
| 258 | + PreprocessorDefinitions="NDEBUG;_USRDLL;X86_ASM" | |
| 259 | 259 | StringPooling="true" |
| 260 | 260 | RuntimeLibrary="0" |
| 261 | 261 | EnableFunctionLevelLinking="true" |
| @@ -360,7 +360,7 @@ · 98 unmodified lines | ||
| 360 | 360 | EnableFiberSafeOptimizations="true" |
| 361 | 361 | WholeProgramOptimization="true" |
| 362 | 362 | AdditionalIncludeDirectories="..\..\..\encoder\plus\inc;..\..\..\encoder\core\inc;..\..\..\api\svc;..\..\..\common\inc;..\..\..\processing\interface" |
| 363 | − PreprocessorDefinitions="WIN64;NDEBUG;_USRDLL;X86_ASM" | |
| 363 | + PreprocessorDefinitions="NDEBUG;_USRDLL;X86_ASM" | |
| 364 | 364 | StringPooling="true" |
| 365 | 365 | RuntimeLibrary="0" |
| 366 | 366 | EnableFunctionLevelLinking="true" |
| @@ -49,7 +49,7 @@ · 48 unmodified lines | ||
| 49 | 49 | Name="VCCLCompilerTool" |
| 50 | 50 | Optimization="0" |
| 51 | 51 | AdditionalIncludeDirectories="..\..\..\console\enc\inc,..\..\..\api\svc,..\..\..\WelsThreadLib\api,..\..\..\encoder\core\inc,..\..\..\common\inc,..\..\..\processing\interface" |
| 52 | − PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;" | |
| 52 | + PreprocessorDefinitions="_DEBUG;_CONSOLE;" | |
| 53 | 53 | MinimalRebuild="true" |
| 54 | 54 | BasicRuntimeChecks="3" |
| 55 | 55 | RuntimeLibrary="1" |
| @@ -144,7 +144,7 @@ · 88 unmodified lines | ||
| 144 | 144 | Optimization="2" |
| 145 | 145 | InlineFunctionExpansion="1" |
| 146 | 146 | AdditionalIncludeDirectories="..\..\..\console\enc\inc,..\..\..\api\svc,..\..\..\WelsThreadLib\api,..\..\..\encoder\core\inc,..\..\..\common\inc,..\..\..\processing\interface" |
| 147 | − PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;X86_ASM;" | |
| 147 | + PreprocessorDefinitions="NDEBUG;_CONSOLE;X86_ASM;" | |
| 148 | 148 | StringPooling="true" |
| 149 | 149 | RuntimeLibrary="0" |
| 150 | 150 | EnableFunctionLevelLinking="true" |
| @@ -239,7 +239,7 @@ · 88 unmodified lines | ||
| 239 | 239 | Name="VCCLCompilerTool" |
| 240 | 240 | Optimization="0" |
| 241 | 241 | AdditionalIncludeDirectories="..\..\..\console\enc\inc,..\..\..\api\svc,..\..\..\WelsThreadLib\api,..\..\..\encoder\core\inc,..\..\..\common\inc,..\..\..\processing\interface" |
| 242 | − PreprocessorDefinitions="WIN64;_DEBUG;_CONSOLE" | |
| 242 | + PreprocessorDefinitions="_DEBUG;_CONSOLE" | |
| 243 | 243 | MinimalRebuild="true" |
| 244 | 244 | BasicRuntimeChecks="3" |
| 245 | 245 | RuntimeLibrary="1" |
| @@ -335,7 +335,7 @@ · 89 unmodified lines | ||
| 335 | 335 | Optimization="2" |
| 336 | 336 | InlineFunctionExpansion="1" |
| 337 | 337 | AdditionalIncludeDirectories="..\..\..\console\enc\inc,..\..\..\api\svc,..\..\..\WelsThreadLib\api,..\..\..\encoder\core\inc,..\..\..\common\inc,..\..\..\processing\interface" |
| 338 | − PreprocessorDefinitions="WIN64;NDEBUG;_CONSOLE" | |
| 338 | + PreprocessorDefinitions="NDEBUG;_CONSOLE" | |
| 339 | 339 | StringPooling="true" |
| 340 | 340 | RuntimeLibrary="0" |
| 341 | 341 | EnableFunctionLevelLinking="true" |
| @@ -53,7 +53,7 @@ · 52 unmodified lines | ||
| 53 | 53 | Name="VCCLCompilerTool" |
| 54 | 54 | Optimization="0" |
| 55 | 55 | AdditionalIncludeDirectories="../../../common/inc;../../interface;../../src/common" |
| 56 | − PreprocessorDefinitions="WIN32;_DEBUG;_USRDLL;X86_ASM" | |
| 56 | + PreprocessorDefinitions="_DEBUG;_USRDLL;X86_ASM" | |
| 57 | 57 | MinimalRebuild="true" |
| 58 | 58 | BasicRuntimeChecks="3" |
| 59 | 59 | RuntimeLibrary="1" |
| @@ -138,7 +138,7 @@ · 78 unmodified lines | ||
| 138 | 138 | Name="VCCLCompilerTool" |
| 139 | 139 | Optimization="0" |
| 140 | 140 | AdditionalIncludeDirectories="../../../common/inc;../../interface;../../src/common" |
| 141 | − PreprocessorDefinitions="WIN64;_DEBUG;_USRDLL;X86_ASM" | |
| 141 | + PreprocessorDefinitions="_DEBUG;_USRDLL;X86_ASM" | |
| 142 | 142 | MinimalRebuild="true" |
| 143 | 143 | BasicRuntimeChecks="3" |
| 144 | 144 | RuntimeLibrary="1" |
| @@ -225,7 +225,7 @@ · 80 unmodified lines | ||
| 225 | 225 | EnableIntrinsicFunctions="false" |
| 226 | 226 | FavorSizeOrSpeed="1" |
| 227 | 227 | AdditionalIncludeDirectories="../../../common/inc/;../../interface;../../src/common" |
| 228 | − PreprocessorDefinitions="WIN32;NDEBUG;_USRDLL;X86_ASM" | |
| 228 | + PreprocessorDefinitions="NDEBUG;_USRDLL;X86_ASM" | |
| 229 | 229 | RuntimeLibrary="0" |
| 230 | 230 | EnableFunctionLevelLinking="false" |
| 231 | 231 | UsePrecompiledHeader="0" |
| @@ -315,7 +315,7 @@ · 83 unmodified lines | ||
| 315 | 315 | EnableIntrinsicFunctions="false" |
| 316 | 316 | FavorSizeOrSpeed="1" |
| 317 | 317 | AdditionalIncludeDirectories="../../../common/inc/;../../interface;../../src/common" |
| 318 | − PreprocessorDefinitions="WIN64;NDEBUG;_USRDLL;X86_ASM" | |
| 318 | + PreprocessorDefinitions="NDEBUG;_USRDLL;X86_ASM" | |
| 319 | 319 | RuntimeLibrary="0" |
| 320 | 320 | EnableFunctionLevelLinking="false" |
| 321 | 321 | UsePrecompiledHeader="0" |