Skip to content

Commit b5b3de8

Browse files
committed
CDRIVER-427 move header include guard above checks
1 parent 757c8df commit b5b3de8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+116
-291
lines changed

src/mongoc/mongoc-array-private.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
* limitations under the License.
1515
*/
1616

17+
#ifndef MONGOC_ARRAY_PRIVATE_H
18+
#define MONGOC_ARRAY_PRIVATE_H
1719

1820
#if !defined (MONGOC_I_AM_A_DRIVER) && !defined (MONGOC_COMPILATION)
1921
#error "Only <mongoc.h> can be included directly."
2022
#endif
2123

22-
23-
#ifndef MONGOC_ARRAY_PRIVATE_H
24-
#define MONGOC_ARRAY_PRIVATE_H
25-
26-
2724
#include <bson.h>
2825

2926

src/mongoc/mongoc-buffer-private.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
* limitations under the License.
1515
*/
1616

17+
#ifndef MONGOC_BUFFER_PRIVATE_H
18+
#define MONGOC_BUFFER_PRIVATE_H
1719

1820
#if !defined (MONGOC_I_AM_A_DRIVER) && !defined (MONGOC_COMPILATION)
1921
#error "Only <mongoc.h> can be included directly."
2022
#endif
2123

22-
23-
#ifndef MONGOC_BUFFER_PRIVATE_H
24-
#define MONGOC_BUFFER_PRIVATE_H
25-
26-
2724
#include <bson.h>
2825

2926
#include "mongoc-stream.h"

src/mongoc/mongoc-bulk-operation-private.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
* limitations under the License.
1515
*/
1616

17+
#ifndef MONGOC_BULK_OPERATION_PRIVATE_H
18+
#define MONGOC_BULK_OPERATION_PRIVATE_H
1719

1820
#if !defined (MONGOC_I_AM_A_DRIVER) && !defined (MONGOC_COMPILATION)
1921
#error "Only <mongoc.h> can be included directly."
2022
#endif
2123

22-
23-
#ifndef MONGOC_BULK_OPERATION_PRIVATE_H
24-
#define MONGOC_BULK_OPERATION_PRIVATE_H
25-
26-
2724
#include "mongoc-array-private.h"
2825
#include "mongoc-client.h"
2926
#include "mongoc-write-command-private.h"

src/mongoc/mongoc-client-pool.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
* limitations under the License.
1515
*/
1616

17+
#ifndef MONGOC_CLIENT_POOL_H
18+
#define MONGOC_CLIENT_POOL_H
1719

1820
#if !defined (MONGOC_INSIDE) && !defined (MONGOC_COMPILATION)
1921
# error "Only <mongoc.h> can be included directly."
2022
#endif
2123

22-
23-
#ifndef MONGOC_CLIENT_POOL_H
24-
#define MONGOC_CLIENT_POOL_H
25-
26-
2724
#include <bson.h>
2825

2926
#include "mongoc-client.h"

src/mongoc/mongoc-client-private.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
* limitations under the License.
1515
*/
1616

17+
#ifndef MONGOC_CLIENT_PRIVATE_H
18+
#define MONGOC_CLIENT_PRIVATE_H
1719

1820
#if !defined (MONGOC_I_AM_A_DRIVER) && !defined (MONGOC_COMPILATION)
1921
#error "Only <mongoc.h> can be included directly."
2022
#endif
2123

22-
23-
#ifndef MONGOC_CLIENT_PRIVATE_H
24-
#define MONGOC_CLIENT_PRIVATE_H
25-
26-
2724
#include <bson.h>
2825

2926
#include "mongoc-buffer-private.h"

src/mongoc/mongoc-client.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
* limitations under the License.
1515
*/
1616

17+
#ifndef MONGOC_CLIENT_H
18+
#define MONGOC_CLIENT_H
1719

1820
#if !defined (MONGOC_INSIDE) && !defined (MONGOC_COMPILATION)
1921
# error "Only <mongoc.h> can be included directly."
2022
#endif
2123

22-
23-
#ifndef MONGOC_CLIENT_H
24-
#define MONGOC_CLIENT_H
25-
26-
2724
#include <bson.h>
2825

2926
#include "mongoc-collection.h"

src/mongoc/mongoc-cluster-private.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
* limitations under the License.
1515
*/
1616

17+
#ifndef MONGOC_CLUSTER_PRIVATE_H
18+
#define MONGOC_CLUSTER_PRIVATE_H
1719

1820
#if !defined (MONGOC_I_AM_A_DRIVER) && !defined (MONGOC_COMPILATION)
1921
#error "Only <mongoc.h> can be included directly."
2022
#endif
2123

22-
23-
#ifndef MONGOC_CLUSTER_PRIVATE_H
24-
#define MONGOC_CLUSTER_PRIVATE_H
25-
26-
2724
#include <bson.h>
2825

2926
#include "mongoc-array-private.h"

src/mongoc/mongoc-collection-private.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
* limitations under the License.
1515
*/
1616

17+
#ifndef MONGOC_COLLECTION_PRIVATE_H
18+
#define MONGOC_COLLECTION_PRIVATE_H
1719

1820
#if !defined (MONGOC_I_AM_A_DRIVER) && !defined (MONGOC_COMPILATION)
1921
#error "Only <mongoc.h> can be included directly."
2022
#endif
2123

22-
23-
#ifndef MONGOC_COLLECTION_PRIVATE_H
24-
#define MONGOC_COLLECTION_PRIVATE_H
25-
26-
2724
#include <bson.h>
2825

2926
#include "mongoc-buffer-private.h"

src/mongoc/mongoc-collection.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
* limitations under the License.
1515
*/
1616

17+
#ifndef MONGOC_COLLECTION_H
18+
#define MONGOC_COLLECTION_H
1719

1820
#if !defined (MONGOC_INSIDE) && !defined (MONGOC_COMPILATION)
1921
# error "Only <mongoc.h> can be included directly."
2022
#endif
2123

22-
23-
#ifndef MONGOC_COLLECTION_H
24-
#define MONGOC_COLLECTION_H
25-
26-
2724
#include <bson.h>
2825

2926
#include "mongoc-bulk-operation.h"

src/mongoc/mongoc-counters-private.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
* limitations under the License.
1515
*/
1616

17+
#ifndef MONGOC_COUNTERS_PRIVATE_H
18+
#define MONGOC_COUNTERS_PRIVATE_H
1719

1820
#if !defined (MONGOC_I_AM_A_DRIVER) && !defined (MONGOC_COMPILATION)
1921
#error "Only <mongoc.h> can be included directly."
2022
#endif
2123

22-
23-
#ifndef MONGOC_COUNTERS_PRIVATE_H
24-
#define MONGOC_COUNTERS_PRIVATE_H
25-
26-
2724
#include <bson.h>
2825

2926
#ifdef __linux__

0 commit comments

Comments
 (0)