mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-04-29 11:33:12 +02:00
Bundle windows configs
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
#ifndef BSON_CONFIG_H
|
||||
#define BSON_CONFIG_H
|
||||
|
||||
/*
|
||||
* Define to 1234 for Little Endian, 4321 for Big Endian.
|
||||
*/
|
||||
#define BSON_BYTE_ORDER 1234
|
||||
|
||||
|
||||
/*
|
||||
* Define to 1 if you have stdbool.h
|
||||
*/
|
||||
#define BSON_HAVE_STDBOOL_H 1
|
||||
#if BSON_HAVE_STDBOOL_H != 1
|
||||
# undef BSON_HAVE_STDBOOL_H
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Define to 1 for POSIX-like systems, 2 for Windows.
|
||||
*/
|
||||
#define BSON_OS 1
|
||||
|
||||
|
||||
/*
|
||||
* Define to 1 if we have access to GCC 64-bit atomic builtins.
|
||||
* While this requires GCC 4.1+ in most cases, it is also architecture
|
||||
* dependent. For example, some PPC or ARM systems may not have it even
|
||||
* if it is a recent GCC version.
|
||||
*/
|
||||
#define BSON_HAVE_ATOMIC_64_ADD_AND_FETCH 0
|
||||
#if BSON_HAVE_ATOMIC_64_ADD_AND_FETCH != 1
|
||||
# undef BSON_HAVE_ATOMIC_64_ADD_AND_FETCH
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Define to 1 if your system requires {} around PTHREAD_ONCE_INIT.
|
||||
* This is typically just Solaris 8-10.
|
||||
*/
|
||||
#define BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES 0
|
||||
#if BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES != 1
|
||||
# undef BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Define to 1 if you have clock_gettime() available.
|
||||
*/
|
||||
#define BSON_HAVE_CLOCK_GETTIME 0
|
||||
#if BSON_HAVE_CLOCK_GETTIME != 1
|
||||
# undef BSON_HAVE_CLOCK_GETTIME
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Define to 1 if you have strnlen available on your platform.
|
||||
*/
|
||||
#define BSON_HAVE_STRNLEN 0
|
||||
#if BSON_HAVE_STRNLEN != 1
|
||||
# undef BSON_HAVE_STRNLEN
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Define to 1 if you have snprintf available on your platform.
|
||||
*/
|
||||
#define BSON_HAVE_SNPRINTF 0
|
||||
#if BSON_HAVE_SNPRINTF != 1
|
||||
# undef BSON_HAVE_SNPRINTF
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* BSON_CONFIG_H */
|
||||
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Copyright 2013 MongoDB, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
#if !defined (BSON_INSIDE) && !defined (BSON_COMPILATION)
|
||||
#error "Only <bson.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef BSON_VERSION_H
|
||||
#define BSON_VERSION_H
|
||||
|
||||
|
||||
/**
|
||||
* BSON_MAJOR_VERSION:
|
||||
*
|
||||
* BSON major version component (e.g. 1 if %BSON_VERSION is 1.2.3)
|
||||
*/
|
||||
#define BSON_MAJOR_VERSION (1)
|
||||
|
||||
|
||||
/**
|
||||
* BSON_MINOR_VERSION:
|
||||
*
|
||||
* BSON minor version component (e.g. 2 if %BSON_VERSION is 1.2.3)
|
||||
*/
|
||||
#define BSON_MINOR_VERSION (1)
|
||||
|
||||
|
||||
/**
|
||||
* BSON_MICRO_VERSION:
|
||||
*
|
||||
* BSON micro version component (e.g. 3 if %BSON_VERSION is 1.2.3)
|
||||
*/
|
||||
#define BSON_MICRO_VERSION (3)
|
||||
|
||||
|
||||
/**
|
||||
* BSON_VERSION:
|
||||
*
|
||||
* BSON version.
|
||||
*/
|
||||
#define BSON_VERSION (1.1.3)
|
||||
|
||||
|
||||
/**
|
||||
* BSON_VERSION_S:
|
||||
*
|
||||
* BSON version, encoded as a string, useful for printing and
|
||||
* concatenation.
|
||||
*/
|
||||
#define BSON_VERSION_S "1.1.3"
|
||||
|
||||
|
||||
/**
|
||||
* BSON_VERSION_HEX:
|
||||
*
|
||||
* BSON version, encoded as an hexadecimal number, useful for
|
||||
* integer comparisons.
|
||||
*/
|
||||
#define BSON_VERSION_HEX (BSON_MAJOR_VERSION << 24 | \
|
||||
BSON_MINOR_VERSION << 16 | \
|
||||
BSON_MICRO_VERSION << 8)
|
||||
|
||||
|
||||
/**
|
||||
* BSON_CHECK_VERSION:
|
||||
* @major: required major version
|
||||
* @minor: required minor version
|
||||
* @micro: required micro version
|
||||
*
|
||||
* Compile-time version checking. Evaluates to %TRUE if the version
|
||||
* of BSON is greater than the required one.
|
||||
*/
|
||||
#define BSON_CHECK_VERSION(major,minor,micro) \
|
||||
(BSON_MAJOR_VERSION > (major) || \
|
||||
(BSON_MAJOR_VERSION == (major) && BSON_MINOR_VERSION > (minor)) || \
|
||||
(BSON_MAJOR_VERSION == (major) && BSON_MINOR_VERSION == (minor) && \
|
||||
BSON_MICRO_VERSION >= (micro)))
|
||||
|
||||
|
||||
/**
|
||||
* bson_get_major_version:
|
||||
*
|
||||
* Helper function to return the runtime major version of the library.
|
||||
*/
|
||||
int bson_get_major_version (void);
|
||||
|
||||
|
||||
/**
|
||||
* bson_get_minor_version:
|
||||
*
|
||||
* Helper function to return the runtime minor version of the library.
|
||||
*/
|
||||
int bson_get_minor_version (void);
|
||||
|
||||
|
||||
/**
|
||||
* bson_get_micro_version:
|
||||
*
|
||||
* Helper function to return the runtime micro version of the library.
|
||||
*/
|
||||
int bson_get_micro_version (void);
|
||||
|
||||
|
||||
#endif /* BSON_VERSION_H */
|
||||
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2013 MongoDB Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef MONGOC_CONFIG_H
|
||||
#define MONGOC_CONFIG_H
|
||||
|
||||
|
||||
/*
|
||||
* MONGOC_ENABLE_SSL is set from configure to determine if we are
|
||||
* compiled with SSL support.
|
||||
*/
|
||||
#define MONGOC_ENABLE_SSL 1
|
||||
|
||||
#if MONGOC_ENABLE_SSL != 1
|
||||
# undef MONGOC_ENABLE_SSL
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* MONGOC_ENABLE_SASL is set from configure to determine if we are
|
||||
* compiled with SASL support.
|
||||
*/
|
||||
#define MONGOC_ENABLE_SASL 1
|
||||
|
||||
#if MONGOC_ENABLE_SASL != 1
|
||||
# undef MONGOC_ENABLE_SASL
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* MONGOC_CONFIG_H */
|
||||
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2013 MongoDB, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
#if !defined (MONGOC_INSIDE) && !defined (MONGOC_COMPILATION)
|
||||
#error "Only <mongoc.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef MONGOC_VERSION_H
|
||||
#define MONGOC_VERSION_H
|
||||
|
||||
|
||||
/**
|
||||
* MONGOC_MAJOR_VERSION:
|
||||
*
|
||||
* MONGOC major version component (e.g. 1 if %MONGOC_VERSION is 1.2.3)
|
||||
*/
|
||||
#define MONGOC_MAJOR_VERSION (1)
|
||||
|
||||
|
||||
/**
|
||||
* MONGOC_MINOR_VERSION:
|
||||
*
|
||||
* MONGOC minor version component (e.g. 2 if %MONGOC_VERSION is 1.2.3)
|
||||
*/
|
||||
#define MONGOC_MINOR_VERSION (1)
|
||||
|
||||
|
||||
/**
|
||||
* MONGOC_MICRO_VERSION:
|
||||
*
|
||||
* MONGOC micro version component (e.g. 3 if %MONGOC_VERSION is 1.2.3)
|
||||
*/
|
||||
#define MONGOC_MICRO_VERSION (2)
|
||||
|
||||
|
||||
/**
|
||||
* MONGOC_VERSION:
|
||||
*
|
||||
* MONGOC version.
|
||||
*/
|
||||
#define MONGOC_VERSION (1.1.2)
|
||||
|
||||
|
||||
/**
|
||||
* MONGOC_VERSION_S:
|
||||
*
|
||||
* MONGOC version, encoded as a string, useful for printing and
|
||||
* concatenation.
|
||||
*/
|
||||
#define MONGOC_VERSION_S "1.1.2"
|
||||
|
||||
|
||||
/**
|
||||
* MONGOC_VERSION_HEX:
|
||||
*
|
||||
* MONGOC version, encoded as an hexadecimal number, useful for
|
||||
* integer comparisons.
|
||||
*/
|
||||
#define MONGOC_VERSION_HEX (MONGOC_MAJOR_VERSION << 24 | \
|
||||
MONGOC_MINOR_VERSION << 16 | \
|
||||
MONGOC_MICRO_VERSION << 8)
|
||||
|
||||
|
||||
/**
|
||||
* MONGOC_CHECK_VERSION:
|
||||
* @major: required major version
|
||||
* @minor: required minor version
|
||||
* @micro: required micro version
|
||||
*
|
||||
* Compile-time version checking. Evaluates to %TRUE if the version
|
||||
* of MONGOC is greater than the required one.
|
||||
*/
|
||||
#define MONGOC_CHECK_VERSION(major,minor,micro) \
|
||||
(MONGOC_MAJOR_VERSION > (major) || \
|
||||
(MONGOC_MAJOR_VERSION == (major) && MONGOC_MINOR_VERSION > (minor)) || \
|
||||
(MONGOC_MAJOR_VERSION == (major) && MONGOC_MINOR_VERSION == (minor) && \
|
||||
MONGOC_MICRO_VERSION >= (micro)))
|
||||
|
||||
|
||||
#endif /* MONGOC_VERSION_H */
|
||||
Reference in New Issue
Block a user