Skip to content

Commit

Permalink
fix a compilation error on raspi.
Browse files Browse the repository at this point in the history
  • Loading branch information
aoym committed Feb 9, 2016
1 parent 7491fc0 commit c3d8a94
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions 3rdparty/mongo-c-driver/src/libbson/src/bson/bson-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,25 @@
* dependent. For example, some PPC or ARM systems may not have it even
* if it is a recent GCC version.
*/
#define BSON_HAVE_ATOMIC_32_ADD_AND_FETCH 1
#if (defined(Q_OS_LINUX) || defined(Q_OS_MAC)) && !defined(Q_PROCESSOR_ARM)
# define BSON_HAVE_ATOMIC_32_ADD_AND_FETCH 1
#else
# define BSON_HAVE_ATOMIC_32_ADD_AND_FETCH 0
#endif

#if BSON_HAVE_ATOMIC_32_ADD_AND_FETCH != 1
# undef BSON_HAVE_ATOMIC_32_ADD_AND_FETCH
#endif

/*
* Similarly, define to 1 if we have access to GCC 64-bit atomic builtins.
*/
#define BSON_HAVE_ATOMIC_64_ADD_AND_FETCH 1
#if (defined(Q_OS_LINUX) || defined(Q_OS_MAC)) && !defined(Q_PROCESSOR_ARM)
# define BSON_HAVE_ATOMIC_64_ADD_AND_FETCH 1
#else
# define BSON_HAVE_ATOMIC_64_ADD_AND_FETCH 0
#endif

#if BSON_HAVE_ATOMIC_64_ADD_AND_FETCH != 1
# undef BSON_HAVE_ATOMIC_64_ADD_AND_FETCH
#endif
Expand Down

0 comments on commit c3d8a94

Please sign in to comment.