mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 12:56:28 -04:00
29 lines
558 B
C++
29 lines
558 B
C++
--- dart/common/Platform.hpp.orig 2018-09-03 18:37:30 UTC
|
|
+++ dart/common/Platform.hpp
|
|
@@ -43,6 +43,15 @@
|
|
#define DART_ARCH_32BITS 1
|
|
#endif
|
|
|
|
+#elif defined(__FreeBSD__)
|
|
+
|
|
+#define DART_OS_FREEBSD 1
|
|
+#if __x86_64__ || __ppc64__
|
|
+#define DART_ARCH_64BITS 1
|
|
+#else
|
|
+#define DART_ARCH_32BITS 1
|
|
+#endif
|
|
+
|
|
#elif defined(__APPLE__)
|
|
|
|
#define DART_OS_MACOS 1
|
|
@@ -77,6 +86,10 @@
|
|
#define DART_OS_LINUX 0
|
|
#endif
|
|
|
|
+#ifndef DART_OS_FREEBSD
|
|
+ #define DART_OS_FREEBSD 0
|
|
+#endif
|
|
+
|
|
#ifndef DART_OS_MACOS
|
|
#define DART_OS_MACOS 0
|
|
#endif
|