Guard use of <cstddef> for Microsoft compilers (GH #781)

pull/795/head
Jeffrey Walton 2019-02-04 07:18:51 -05:00
parent 5b6b86c7f1
commit 47435f7d72
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 8 additions and 1 deletions

View File

@ -60,11 +60,18 @@ namespace std {
#endif
#include <cstdlib>
#include <cstddef>
#include <cstring>
#include <climits>
#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
#if defined(__SUNPRO_CC)
# if (__SUNPRO_CC >= 0x5100)