kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #36740
[PATCH 2/5] Revert "libcontext FreeBSD compatibility fix"
This reverts commit 2206d51b82ab1353b33e78a18ebc4d6970ff05db.
---
include/system/libcontext.h | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/include/system/libcontext.h b/include/system/libcontext.h
index e274e4315..1a94ca2d1 100644
--- a/include/system/libcontext.h
+++ b/include/system/libcontext.h
@@ -22,14 +22,15 @@
#include <stddef.h>
-#if defined(__GNUC__) || defined(__APPLE__) || defined(__FreeBSD__)
+#if defined(__GNUC__) || defined(__APPLE__)
#define LIBCONTEXT_COMPILER_gcc
- #if defined(__linux__) || defined(__FreeBSD__)
- #if defined(__x86_64__) || defined(__amd64__)
+ #if defined(__linux__)
+ #ifdef __x86_64__
#define LIBCONTEXT_PLATFORM_linux_x86_64
#define LIBCONTEXT_CALL_CONVENTION
+
#elif __i386__
#define LIBCONTEXT_PLATFORM_linux_i386
#define LIBCONTEXT_CALL_CONVENTION
References