diff options
-rw-r--r-- | tests/CMakeLists.txt | 7 | ||||
-rw-r--r-- | tests/win32/msinttypes/inttypes.h (renamed from librabbitmq/win32/msinttypes/inttypes.h) | 0 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 93ccb9a..69ff32d 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,5 +1,12 @@ include_directories(${LIBRABBITMQ_INCLUDE_DIRS}) +if (MSVC) + # No version of MSVC has inttypes.h, this uses the msinttypes + # Note this includes stdint.h which is either in + # ../librabbitmq/win32/msinttypes or in a standard location + include_directories(win32/msinttypes) +endif (MSVC) + add_executable(test_parse_url test_parse_url.c) target_link_libraries(test_parse_url rabbitmq) add_test(parse_url test_parse_url) diff --git a/librabbitmq/win32/msinttypes/inttypes.h b/tests/win32/msinttypes/inttypes.h index 4b3828a..4b3828a 100644 --- a/librabbitmq/win32/msinttypes/inttypes.h +++ b/tests/win32/msinttypes/inttypes.h |