Skip to content

Commit

Permalink
hb-private.hh needs to #include Windows.h under MSVC
Browse files Browse the repository at this point in the history
This is needed to ensure DEFINE_ENUM_FLAG_OPERATORS works as expected. See https://bugzilla.mozilla.org/show_bug.cgi?id=1226175#c10.
  • Loading branch information
jfkthame committed Nov 20, 2015
1 parent 9cc1ed4 commit 47c3f20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hb-private.hh
Expand Up @@ -53,6 +53,10 @@
#include <errno.h>
#include <stdarg.h>

#ifdef _MSC_VER
#include <windows.h> /* ensure DEFINE_ENUM_FLAG_OPERATORS is defined */
#endif


/* Compile-time custom allocator support. */

Expand Down

0 comments on commit 47c3f20

Please sign in to comment.