diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2018-02-09 14:39:42 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2018-02-09 14:39:42 +0000 |
| commit | 52ae3582a2c7bb437df33c0a30bfd5a01d6c5282 (patch) | |
| tree | 4f532a97ab0a6a1c2f96454290bc8803ee022f1f /test/demo.cxx | |
| parent | 30dad6a4aa2b94fe91783160c86abc75f9dc9e23 (diff) | |
Replace "WIN32" with "_WIN32" or "Windows".
Replace compiler/preprocessor/platform macro "WIN32" with "_WIN32".
Replace "WIN32" in text and documentation with "Windows".
Replace "MSWindows" with "Windows".
To do: README.Windows.txt (and maybe other documentation as well)
needs updates.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/demo.cxx')
| -rw-r--r-- | test/demo.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/demo.cxx b/test/demo.cxx index 44646af92..e6497aa73 100644 --- a/test/demo.cxx +++ b/test/demo.cxx @@ -62,7 +62,7 @@ // #if ( defined _MSC_VER || defined __MWERKS__ ) && defined _DEBUG -#if defined(WIN32) && defined(__MWERKS__) && defined(_DEBUG) +#if defined(_WIN32) && defined(__MWERKS__) && defined(_DEBUG) # define DEBUG_EXE_WITH_D 1 #else # define DEBUG_EXE_WITH_D 0 @@ -241,7 +241,7 @@ void dobut(Fl_Widget *, long arg) { push_menu(menus[men].icommand[bn]); } else { -#ifdef WIN32 +#ifdef _WIN32 STARTUPINFO suInfo; // Process startup information PROCESS_INFORMATION prInfo; // Process information @@ -260,7 +260,7 @@ void dobut(Fl_Widget *, long arg) { char* copy_of_icommand = new char[icommand_length+1]; strcpy(copy_of_icommand,menus[men].icommand[bn]); - // On WIN32 the .exe suffix needs to be appended to the command + // On Windows the .exe suffix needs to be appended to the command // whilst leaving any additional parameters unchanged - this // is required to handle the correct conversion of cases such as : // `../fluid/fluid valuators.fl' to '../fluid/fluid.exe valuators.fl'. @@ -346,7 +346,7 @@ void dobut(Fl_Widget *, long arg) { system(command); free(cmd); -#else // NON WIN32 systems. +#else // Non Windows systems. int icommand_length = strlen(menus[men].icommand[bn]); char* command = new char[icommand_length+5]; // 5 for extra './' and ' &\0' @@ -356,7 +356,7 @@ void dobut(Fl_Widget *, long arg) { delete[] command; -#endif // WIN32 +#endif // _WIN32 } } |
