Skip to content

Commit b5b160c

Browse files
committed
PHPC-213: Disable extra bson type alignment
1 parent f0cd8d1 commit b5b160c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config.w32

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ARG_WITH("mongodb-sasl", "MongoDB: Build against Cyrus-SASL", "yes");
55
ADD_EXTENSION_DEP("mongodb", "openssl", false);
66

77
if (PHP_MONGODB != "no") {
8-
ADD_FLAG("CFLAGS_MONGODB", " /I" + configure_module_dirname + " /I" + configure_module_dirname + "/src/libmongoc/src/mongoc" + " /I" + configure_module_dirname + "/src/libbson/src/bson/ /I" + configure_module_dirname + "/src/libbson/src /D HAVE_MONGODB_SASL=1 /D BSON_COMPILATION=1 /D MONGOC_COMPILATION=1 /D MONGOC_TRACE=1 /D MONGOC_NO_AUTOMATIC_GLOBALS=1");
8+
ADD_FLAG("CFLAGS_MONGODB", " /I" + configure_module_dirname + " /I" + configure_module_dirname + "/src/libmongoc/src/mongoc" + " /I" + configure_module_dirname + "/src/libbson/src/bson/ /I" + configure_module_dirname + "/src/libbson/src /D HAVE_MONGODB_SASL=1 /D BSON_COMPILATION=1 /D MONGOC_COMPILATION=1 /D MONGOC_TRACE=1 /D MONGOC_NO_AUTOMATIC_GLOBALS=1 /D BSON_EXTRA_ALIGN=0");
99
EXTENSION("mongodb", "php_phongo.c");
1010
ADD_SOURCES(configure_module_dirname + "/src", "bson.c", "mongodb");
1111
ADD_SOURCES(configure_module_dirname + "/src/BSON", "Type.c Unserializable.c Serializable.c Persistable.c Binary.c Javascript.c MaxKey.c MinKey.c ObjectID.c Regex.c Timestamp.c UTCDatetime.c", "mongodb");
@@ -20,8 +20,8 @@ if (PHP_MONGODB != "no") {
2020

2121
AC_DEFINE("HAVE_MONGOC", 1);
2222

23-
if (!CHECK_LIB("libsasl.lib", "mongodb", PHP_MONGODB)) {
24-
WARNING("mongodb libsasl support not enabled, libs not found");
23+
if (!CHECK_LIB("libsasl.lib", "mongodb", PHP_MONGODB)) {
24+
WARNING("mongodb libsasl support not enabled, libs not found");
2525
}
2626
if (CHECK_LIB("ssleay32.lib", "mongodb", PHP_MONGODB) && CHECK_LIB("libeay32.lib", "mongodb", PHP_MONGODB) && CHECK_HEADER_ADD_INCLUDE("openssl/ssl.h", "CFLAGS_MONGOC")) {
2727
}

0 commit comments

Comments
 (0)