Skip to content

Commit

Permalink
Clean up Windows OS checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ccawley2011 committed Nov 10, 2024
1 parent 2de69c5 commit e576e03
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Makefile.ow
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ SRCS = armcopro.c armemu.c arminit.c armarc.c &
arch/ArcemConfig.c arch/cp15.c arch/newsound.c arch/displaydev.c &
libs/inih/ini.c

CFLAGS += -DWIN32 -DSYSTEM_win -Iwin
CFLAGS += -DSYSTEM_win -Iwin
SRCS += win/ControlPane.c win/DispKbd.c win/filecalls.c win/win.c
RCSRCS += win/gui.rc
resources = win/arc.ico win/gui.ico
Expand Down
4 changes: 2 additions & 2 deletions arch/armarc.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static ARMword ARMul_ManglePhysAddr(ARMword phy);
/*------------------------------------------------------------------------------*/
/* OK - this is getting treated as an odds/sods engine - just hook up anything
you need to do occasionally! */
#ifndef WIN32
#ifndef _WIN32
static void DumpHandler(int sig) {
ARMul_State *state = &statestr;
FILE *res;
Expand Down Expand Up @@ -248,7 +248,7 @@ ARMul_MemoryInit(ARMul_State *state)
ControlPane_Error(EXIT_FAILURE,"Unsupported memory size\n");
}

#ifndef WIN32
#ifndef _WIN32
signal(SIGUSR2,DumpHandler);
#endif

Expand Down
6 changes: 3 additions & 3 deletions dagstandalone.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
/**************************************************************/
/* Signal handler that terminates excecution in the ARMulator */
/**************************************************************/
#ifndef WIN32
#ifndef _WIN32
#ifndef AMIGA
static void dagstandalone_handlesignal(int sig) {
dbug("Terminate ARMulator - excecution\n");
Expand Down Expand Up @@ -68,14 +68,14 @@ static void InitFail(int exitcode, char const *which) {
*
*/
void dagstandalone(ArcemConfig *pConfig) {
#ifndef WIN32
#ifndef _WIN32
#ifndef AMIGA
struct sigaction action;
#endif
#endif
ARMul_State *emu_state = NULL;

#ifndef WIN32
#ifndef _WIN32
#ifndef AMIGA
/* Setup a signal handler for SIGUSR1 */
action.sa_handler = dagstandalone_handlesignal;
Expand Down
4 changes: 2 additions & 2 deletions hostfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#elif !defined(__WATCOMC__)
#include <dirent.h>
#endif
#ifdef WIN32
#ifdef _WIN32
#include <direct.h>
#include <io.h>
#endif
Expand Down Expand Up @@ -106,7 +106,7 @@ static char HOSTFS_ROOT[512];
/* Windows mkdir() function only takes one argument name, and
name clashes with Posix mkdir() function taking two. This
macro allows us to use one API to work with both variants */
#if (defined _WIN32 || defined __WIN32__ || defined __WATCOMC__) && ! defined __CYGWIN__
#if (defined _WIN32 || defined __WATCOMC__) && ! defined __CYGWIN__
# define mkdir(name, mode) _mkdir(name)
#endif

Expand Down
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ArcemConfig hArcemConfig;
static ArcemConfig hArcemConfig;
#endif

#if defined(WIN32) && !defined(USE_FAKEMAIN)
#if defined(_WIN32) && !defined(USE_FAKEMAIN)

#include <windows.h>
#include <stdio.h>
Expand Down
8 changes: 4 additions & 4 deletions vc/ArcEm.dsp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vc/ArcEm.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
Optimization="2"
InlineFunctionExpansion="1"
AdditionalIncludeDirectories="../arch,../win,.."
PreprocessorDefinitions="NOOS;NOFPE;EXTNROM_SUPPORT;HOSTFS_SUPPORT;SOUND_SUPPORT;SYSTEM_win;WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE"
PreprocessorDefinitions="NOOS;NOFPE;EXTNROM_SUPPORT;HOSTFS_SUPPORT;SOUND_SUPPORT;SYSTEM_win;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE"
StringPooling="true"
RuntimeLibrary="0"
EnableFunctionLevelLinking="true"
Expand Down Expand Up @@ -146,7 +146,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="../arch/,../win/,.."
PreprocessorDefinitions="NOOS;NOFPE;EXTNROM_SUPPORT;HOSTFS_SUPPORT;SOUND_SUPPORT;SYSTEM_win;WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE"
PreprocessorDefinitions="NOOS;NOFPE;EXTNROM_SUPPORT;HOSTFS_SUPPORT;SOUND_SUPPORT;SYSTEM_win;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
Expand Down
16 changes: 8 additions & 8 deletions vc/ArcEm.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>NOOS;NOFPE;EXTNROM_SUPPORT;HOSTFS_SUPPORT;SOUND_SUPPORT;SYSTEM_win;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>NOOS;NOFPE;EXTNROM_SUPPORT;HOSTFS_SUPPORT;SOUND_SUPPORT;SYSTEM_win;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\arch;..\win;..</AdditionalIncludeDirectories>
<CompileAs>Default</CompileAs>
</ClCompile>
Expand All @@ -165,7 +165,7 @@
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>NOOS;NOFPE;EXTNROM_SUPPORT;HOSTFS_SUPPORT;SOUND_SUPPORT;SYSTEM_win;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>NOOS;NOFPE;EXTNROM_SUPPORT;HOSTFS_SUPPORT;SOUND_SUPPORT;SYSTEM_win;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\arch;..\win;..</AdditionalIncludeDirectories>
<CompileAs>Default</CompileAs>
</ClCompile>
Expand All @@ -180,7 +180,7 @@
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>NOOS;NOFPE;EXTNROM_SUPPORT;HOSTFS_SUPPORT;SOUND_SUPPORT;SYSTEM_win;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>NOOS;NOFPE;EXTNROM_SUPPORT;HOSTFS_SUPPORT;SOUND_SUPPORT;SYSTEM_win;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\arch;..\win;..</AdditionalIncludeDirectories>
<CompileAs>Default</CompileAs>
</ClCompile>
Expand All @@ -195,7 +195,7 @@
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>NOOS;NOFPE;EXTNROM_SUPPORT;HOSTFS_SUPPORT;SOUND_SUPPORT;SYSTEM_win;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>NOOS;NOFPE;EXTNROM_SUPPORT;HOSTFS_SUPPORT;SOUND_SUPPORT;SYSTEM_win;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\arch;..\win;..</AdditionalIncludeDirectories>
<CompileAs>Default</CompileAs>
</ClCompile>
Expand All @@ -212,7 +212,7 @@
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>NOOS;NOFPE;EXTNROM_SUPPORT;HOSTFS_SUPPORT;SOUND_SUPPORT;SYSTEM_win;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>NOOS;NOFPE;EXTNROM_SUPPORT;HOSTFS_SUPPORT;SOUND_SUPPORT;SYSTEM_win;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<AdditionalIncludeDirectories>..\arch;..\win;..</AdditionalIncludeDirectories>
Expand All @@ -232,7 +232,7 @@
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>NOOS;NOFPE;EXTNROM_SUPPORT;HOSTFS_SUPPORT;SOUND_SUPPORT;SYSTEM_win;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>NOOS;NOFPE;EXTNROM_SUPPORT;HOSTFS_SUPPORT;SOUND_SUPPORT;SYSTEM_win;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<AdditionalIncludeDirectories>..\arch;..\win;..</AdditionalIncludeDirectories>
Expand All @@ -252,7 +252,7 @@
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>NOOS;NOFPE;EXTNROM_SUPPORT;HOSTFS_SUPPORT;SOUND_SUPPORT;SYSTEM_win;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>NOOS;NOFPE;EXTNROM_SUPPORT;HOSTFS_SUPPORT;SOUND_SUPPORT;SYSTEM_win;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<AdditionalIncludeDirectories>..\arch;..\win;..</AdditionalIncludeDirectories>
Expand All @@ -272,7 +272,7 @@
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>NOOS;NOFPE;EXTNROM_SUPPORT;HOSTFS_SUPPORT;SOUND_SUPPORT;SYSTEM_win;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>NOOS;NOFPE;EXTNROM_SUPPORT;HOSTFS_SUPPORT;SOUND_SUPPORT;SYSTEM_win;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<AdditionalIncludeDirectories>..\arch;..\win;..</AdditionalIncludeDirectories>
Expand Down

0 comments on commit e576e03

Please sign in to comment.