summaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
authorTechGeekNZ <git@tech.geek.nz>2020-07-03 09:36:10 +1200
committerNiels Martin Hansen <nielsm@indvikleren.dk>2020-07-03 09:08:46 +0200
commit716c883737b76757e0f3bcddeacc1e276dfff13b (patch)
treeafd30f0dc704eb6264499b1999a2a0f9d48d69f8 /src/os
parent97592c409378c2d353a1cdd6b50f80b7e81b67c2 (diff)
downloadopenttd-716c883737b76757e0f3bcddeacc1e276dfff13b.tar.xz
Fix: Globally apply preprocessor directive coding style
Global; except for the 32-bit SSE blitter, which has some #DEFINEs in not-very-nice places.
Diffstat (limited to 'src/os')
-rw-r--r--src/os/os2/os2.cpp4
-rw-r--r--src/os/unix/unix.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/os/os2/os2.cpp b/src/os/os2/os2.cpp
index a44c10a3b..f1128b0c6 100644
--- a/src/os/os2/os2.cpp
+++ b/src/os/os2/os2.cpp
@@ -26,7 +26,7 @@
#include <stdlib.h>
#include <time.h>
#ifndef __INNOTEK_LIBC__
- #include <dos.h>
+# include <dos.h>
#endif
#include "../../safeguards.h"
@@ -36,7 +36,7 @@
#include <os2.h>
#ifndef __INNOTEK_LIBC__
- #include <i86.h>
+# include <i86.h>
#endif
bool FiosIsRoot(const char *file)
diff --git a/src/os/unix/unix.cpp b/src/os/unix/unix.cpp
index e4e1d687c..2bcd6151a 100644
--- a/src/os/unix/unix.cpp
+++ b/src/os/unix/unix.cpp
@@ -29,13 +29,13 @@
#endif
#ifdef __APPLE__
- #include <sys/mount.h>
+# include <sys/mount.h>
#elif (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L) || defined(__GLIBC__)
- #define HAS_STATVFS
+# define HAS_STATVFS
#endif
#if defined(OPENBSD) || defined(__NetBSD__) || defined(__FreeBSD__)
- #define HAS_SYSCTL
+# define HAS_SYSCTL
#endif
#ifdef HAS_STATVFS