Skip to content

Commit

Permalink
Protect simd.h against stray #define of True or False (#2272)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgritz committed Jun 27, 2019
1 parent d25b9fa commit 9dcde4e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/include/OpenImageIO/simd.h
Expand Up @@ -226,6 +226,15 @@
#define OIIO_SIMD_HAS_SIMD16 1 /* vfloat16, vint16, vbool16 defined */


// Embarrassing hack: Xlib.h #define's True and False!
#ifdef True
# undef True
#endif
#ifdef False
# undef False
#endif



OIIO_NAMESPACE_BEGIN

Expand Down

0 comments on commit 9dcde4e

Please sign in to comment.