Skip to content

Commit 354d53b

Browse files
author
michael stack
committed
Avoid double define
1 parent 59a3f57 commit 354d53b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

fdbcli/fdb_checksum_tool/fdb_checksum_tool.actor.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@
1717
* See the License for the specific language governing permissions and
1818
* limitations under the License.
1919
*/
20+
#ifndef NO_INTELLISENSE
21+
// In IDE, we need to define the API version explicitly
22+
#define FDB_API_VERSION 710
23+
#else
24+
// In actual build, use the latest version
2025
#define FDB_USE_LATEST_API_VERSION
26+
#endif
27+
2128
#include "flow/flow.h"
2229
#include "flow/Error.h"
2330
#include "flow/FastRef.h"
@@ -38,9 +45,6 @@
3845
#include "flow/xxhash.h"
3946
#include "fdbclient/ChecksumDatabase.actor.h" // This now brings in actorcompiler.h for its own actors
4047

41-
// Define FDB_API_VERSION before including fdb_c.h
42-
#define FDB_API_VERSION 710
43-
4448
// Include C API here
4549
#include "foundationdb/fdb_c.h"
4650

0 commit comments

Comments
 (0)