Skip to content

Commit

Permalink
minor: add missing decls for older MinGW, closes #95
Browse files Browse the repository at this point in the history
  • Loading branch information
amidvidy committed Oct 17, 2014
1 parent 067e3e2 commit bffbb2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bson/bson-compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ BSON_BEGIN_DECLS
# include <inttypes.h>
#endif

#if defined(__MINGW32__) && ! defined(INIT_ONCE_STATIC_INIT)
# define INIT_ONCE_STATIC_INIT RTL_RUN_ONCE_INIT
typedef RTL_RUN_ONCE INIT_ONCE;
#endif

#ifdef BSON_HAVE_STDBOOL_H
# include <stdbool.h>
Expand Down

0 comments on commit bffbb2a

Please sign in to comment.