Commit a33ff09c authored by Davis King's avatar Davis King

Added checks to avoid redefining #defines that already exist.

parent 28f6e51b
...@@ -27,19 +27,29 @@ ...@@ -27,19 +27,29 @@
#endif #endif
#else #else
#ifdef __SSE2__ #ifdef __SSE2__
#define DLIB_HAVE_SSE2 #ifndef DLIB_HAVE_SSE2
#define DLIB_HAVE_SSE2
#endif
#endif #endif
#ifdef __SSSE3__ #ifdef __SSSE3__
#define DLIB_HAVE_SSE3 #ifndef DLIB_HAVE_SSE3
#define DLIB_HAVE_SSE3
#endif
#endif #endif
#ifdef __SSE4_1__ #ifdef __SSE4_1__
#define DLIB_HAVE_SSE41 #ifndef DLIB_HAVE_SSE41
#define DLIB_HAVE_SSE41
#endif
#endif #endif
#ifdef __AVX__ #ifdef __AVX__
#define DLIB_HAVE_AVX #ifndef DLIB_HAVE_AVX
#define DLIB_HAVE_AVX
#endif
#endif #endif
#ifdef __AVX2__ #ifdef __AVX2__
#define DLIB_HAVE_AVX2 #ifndef DLIB_HAVE_AVX2
#define DLIB_HAVE_AVX2
#endif
#endif #endif
#endif #endif
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment