summaryrefslogtreecommitdiffstats
path: root/platform.h
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.de>2021-10-12 17:37:26 +0200
committerNico Huber <nico.h@gmx.de>2021-10-15 14:35:52 +0000
commit494180096c1125485549c9cc83c8291a3cb3d9b8 (patch)
tree0751a1b620b59c640554155a767f0b07568edb39 /platform.h
parentb5836478888acf38780ae1ec0315282778916d2a (diff)
downloadflashrom-494180096c1125485549c9cc83c8291a3cb3d9b8.tar.gz
flashrom-494180096c1125485549c9cc83c8291a3cb3d9b8.tar.bz2
flashrom-494180096c1125485549c9cc83c8291a3cb3d9b8.zip
platform.h: remove IS_LINUX and IS_MACOSX macros
Replace the remaining uses by the plain macros. Windows, Linux and MacOS are the only systems with explicit macros. Only the Windows macro is used in several places. The others can easily be handled like all other systems. Change-Id: I23ec8fdcff8202d10ddf5a7520432e5b26b01cd4 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/58276 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'platform.h')
-rw-r--r--platform.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/platform.h b/platform.h
index 9bbde549d..34a56abc9 100644
--- a/platform.h
+++ b/platform.h
@@ -21,16 +21,6 @@
#define __PLATFORM_H__ 1
// Helper defines for operating systems
-#if defined(__gnu_linux__) || defined(__linux__)
-#define IS_LINUX 1
-#else
-#define IS_LINUX 0
-#endif
-#if defined(__APPLE__) && defined(__MACH__) /* yes, both. */
-#define IS_MACOSX 1
-#else
-#define IS_MACOSX 0
-#endif
#if defined(_WIN32) || defined(_WIN64) || defined(__WIN32__) || defined(__WINDOWS__)
#define IS_WINDOWS 1
#else