forked from boostorg/container_hash
Fix clang
This commit is contained in:
@@ -4,16 +4,17 @@
|
|||||||
|
|
||||||
#include <boost/config/pragma_message.hpp>
|
#include <boost/config/pragma_message.hpp>
|
||||||
|
|
||||||
#if defined(__clang__)
|
#if defined(__GNUC__) && !defined(__clang__) && __cplusplus < 201100L
|
||||||
# pragma clang diagnostic ignored "-Wlong-long"
|
|
||||||
|
|
||||||
#elif defined(__GNUC__) && __cplusplus < 201100L
|
|
||||||
|
|
||||||
BOOST_PRAGMA_MESSAGE("Skipping test under GCC in C++98 mode")
|
BOOST_PRAGMA_MESSAGE("Skipping test under GCC in C++98 mode")
|
||||||
int main() {}
|
int main() {}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#if defined(__clang__)
|
||||||
|
# pragma clang diagnostic ignored "-Wlong-long"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <boost/container_hash/hash.hpp>
|
#include <boost/container_hash/hash.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
Reference in New Issue
Block a user