mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
Fix MSVC build.
This commit is contained in:
parent
cb098cbfc3
commit
1fd50b4dea
@ -19,9 +19,14 @@
|
||||
#include <sparsepp/spp_memory.h>
|
||||
#endif
|
||||
|
||||
//#define _STRINGIFY(x) #x
|
||||
//#define ENSURE_STRING_MACRO_ARGUMENT(x) _STRINGIFY(x)
|
||||
// DEFAULT_RESOURCE_DIRECTORY is passed with quotes for non-MSVC compilers, ie,
|
||||
// foo vs "foo".
|
||||
#if defined(_MSC_VER )
|
||||
#define _STRINGIFY(x) #x
|
||||
#define ENSURE_STRING_MACRO_ARGUMENT(x) _STRINGIFY(x)
|
||||
#else
|
||||
#define ENSURE_STRING_MACRO_ARGUMENT(x) x
|
||||
#endif
|
||||
|
||||
// See http://stackoverflow.com/a/217605
|
||||
void TrimStart(std::string& s) {
|
||||
|
Loading…
Reference in New Issue
Block a user