Commit a33ff09c authored by Davis King's avatar Davis King

Added checks to avoid redefining #defines that already exist.

parent 28f6e51b
...@@ -27,21 +27,31 @@ ...@@ -27,21 +27,31 @@
#endif #endif
#else #else
#ifdef __SSE2__ #ifdef __SSE2__
#ifndef DLIB_HAVE_SSE2
#define DLIB_HAVE_SSE2 #define DLIB_HAVE_SSE2
#endif #endif
#endif
#ifdef __SSSE3__ #ifdef __SSSE3__
#ifndef DLIB_HAVE_SSE3
#define DLIB_HAVE_SSE3 #define DLIB_HAVE_SSE3
#endif #endif
#endif
#ifdef __SSE4_1__ #ifdef __SSE4_1__
#ifndef DLIB_HAVE_SSE41
#define DLIB_HAVE_SSE41 #define DLIB_HAVE_SSE41
#endif #endif
#endif
#ifdef __AVX__ #ifdef __AVX__
#ifndef DLIB_HAVE_AVX
#define DLIB_HAVE_AVX #define DLIB_HAVE_AVX
#endif #endif
#endif
#ifdef __AVX2__ #ifdef __AVX2__
#ifndef DLIB_HAVE_AVX2
#define 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