refactor: continue refactor to make the project can be built
This commit is contained in:
14
src/yycc/macro/stl_detector.hpp
Normal file
14
src/yycc/macro/stl_detector.hpp
Normal file
@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
// Include a common used STL header for convenient test.
|
||||
#include <cinttypes>
|
||||
|
||||
#if defined(_MSVC_STL_VERSION)
|
||||
#define YYCC_STL_MSSTL
|
||||
#elif defined(__GLIBCXX__) || defined(__GLIBCPP__)
|
||||
#define YYCC_STL_GNUSTL
|
||||
#elif defined(_LIBCPP_VERSION)
|
||||
#define YYCC_STL_CLANGSTL
|
||||
#else
|
||||
#error "Current STL is not supported!"
|
||||
#endif
|
Reference in New Issue
Block a user