summaryrefslogtreecommitdiffstats
path: root/programmer.h
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2015-01-10 09:32:50 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2015-01-10 09:32:50 +0000
commitb0eee9b8d649efc3db9a6c5f333b0fff5204a979 (patch)
treefcba10fdf1451557f3bc58de6f39d669e5106c46 /programmer.h
parentbe62d3fc07194ec13f091aa06beff0a032f1a418 (diff)
downloadflashrom-b0eee9b8d649efc3db9a6c5f333b0fff5204a979.tar.gz
flashrom-b0eee9b8d649efc3db9a6c5f333b0fff5204a979.tar.bz2
flashrom-b0eee9b8d649efc3db9a6c5f333b0fff5204a979.zip
Unify target OS and CPU architecture checks
We do CPU architecture checks once for the makefile in arch.h and once for HW access abstraction in hwaccess.c. This patch unifies related files so that they can share the checks to improve maintainability and reduce the chance of inconsistencies. Furthermore, it refines some of the definitions, which - adds "support" for AARCH64 and PPC64, - adds big-endian handling on arm as well as LE handling on PPC64, - fixes compilation of internal.c on AARCH64 and PPC64. Additionally, this patch continues to unify all OS checks in flashrom by adding a new helper macro IS_WINDOWS. The old header file for architecture checking is renamed to platform.h to reflect its broader scope and all new macros are add in there. Corresponding to flashrom svn r1864. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'programmer.h')
-rw-r--r--programmer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/programmer.h b/programmer.h
index d6e06cb88..f82e9502a 100644
--- a/programmer.h
+++ b/programmer.h
@@ -700,7 +700,7 @@ void serprog_delay(unsigned int usecs);
#endif
/* serial.c */
-#ifdef _WIN32
+#if IS_WINDOWS
typedef HANDLE fdtype;
#define SER_INV_FD INVALID_HANDLE_VALUE
#else