Skip to content

Commit 239eddd

Browse files
authored
CDRIVER-5510 Remove redundant redefinition of BSON_COMPILATION (#1557)
1 parent 3e942aa commit 239eddd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libbson/libbson.rc.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// Defines Version Information to include in DLL on Windows.
22
// Refer: https://learn.microsoft.com/en-us/windows/win32/menurc/versioninfo-resource
33
#include <winver.h> // Defines VS_VERSION_INFO
4-
#define BSON_COMPILATION // Tell bson-version.h it is part of compilation.
4+
55
#include <bson/bson-version.h> // Defines BSON_MAJOR_VERSION and other version macros.
6-
#undef BSON_COMPILATION
76

87
#define BSON_OUTPUT_BASENAME "@BSON_OUTPUT_BASENAME@"
98
#define BSON_API_VERSION "@BSON_API_VERSION@"

src/libmongoc/libmongoc.rc.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Defines Version Information to include in DLL on Windows.
22
// Refer: https://learn.microsoft.com/en-us/windows/win32/menurc/versioninfo-resource
33
#include <winver.h> // Defines VS_VERSION_INFO
4+
45
#include <mongoc/mongoc-version.h> // Defines MONGOC_MAJOR_VERSION and other version macros.
56

67
#define MONGOC_OUTPUT_BASENAME "@MONGOC_OUTPUT_BASENAME@"

0 commit comments

Comments
 (0)