Guard use of <cstddef> for Microsoft compilers (GH #781)
parent
5b6b86c7f1
commit
47435f7d72
9
stdcpp.h
9
stdcpp.h
|
|
@ -60,11 +60,18 @@ namespace std {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstddef>
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <climits>
|
#include <climits>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
|
// It is 2019 and VS2017/Win10 still can't compile a
|
||||||
|
// program that includes <cstddef> without making users
|
||||||
|
// do something special. "Epic fail" comes to mind.
|
||||||
|
// Also see https://github.com/weidai11/cryptopp/issues/781
|
||||||
|
#ifndef _MSC_VER
|
||||||
|
# include <cstddef>
|
||||||
|
#endif
|
||||||
|
|
||||||
// uintptr_t and ptrdiff_t
|
// uintptr_t and ptrdiff_t
|
||||||
#if defined(__SUNPRO_CC)
|
#if defined(__SUNPRO_CC)
|
||||||
# if (__SUNPRO_CC >= 0x5100)
|
# if (__SUNPRO_CC >= 0x5100)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue