Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/cpu_features.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2021-07-02 16:37:03 +0300
committerGitHub <noreply@github.com>2021-07-02 16:37:03 +0300
commit119943707c42f42a5f2344f0c0ac12bc2190b3d8 (patch)
tree338ddc90a129b7a9f87556a28e5a369a5f5a2012 /include
parent06fdc0aa1d2c300d9207337baa1a8182c1704bbf (diff)
Add support for FreeBSD on x86 (#163)
Diffstat (limited to 'include')
-rw-r--r--include/cpu_features_macros.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/cpu_features_macros.h b/include/cpu_features_macros.h
index 15f7368..96acf6d 100644
--- a/include/cpu_features_macros.h
+++ b/include/cpu_features_macros.h
@@ -83,6 +83,10 @@
#define CPU_FEATURES_OS_DARWIN
#endif
+#if (defined(__freebsd__) || defined(__FreeBSD__))
+#define CPU_FEATURES_OS_FREEBSD
+#endif
+
////////////////////////////////////////////////////////////////////////////////
// Compilers
////////////////////////////////////////////////////////////////////////////////