Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

Commit

Permalink
PERL-409 add missing declarations for MinGW on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
xdg committed Oct 16, 2014
1 parent 5d2fd78 commit 7f49bfb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bson/bson-compat.h
Expand Up @@ -91,6 +91,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

4 comments on commit 7f49bfb

@jeroen
Copy link

@jeroen jeroen commented on 7f49bfb Oct 16, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to fix this in https://github.com/mongodb/libbson/commits/master as well?

@dagolden
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't manage that repo, but I'll forward it to my colleague on the libbson/C-driver team.

@dagolden
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've opened a ticket for it: https://jira.mongodb.org/browse/CDRIVER-441

@jeroen
Copy link

@jeroen jeroen commented on 7f49bfb Oct 17, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

edit: never mind I forgot to set #define BSON_OS 2

Please sign in to comment.