Fix missing header

pull/748/head
Jeffrey Walton 2018-11-17 15:32:53 -05:00
parent 0564266151
commit 0c6dc33d2b
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
#include <cstddef>
int main(int argc, char* argv[])
{
enum {N = (sizeof(size_t) == 4 ? 4 : -1)};
enum {N = (sizeof(std::size_t) == 4 ? 4 : -1)};
int x[N];
return 0;
}

View File

@ -1,6 +1,7 @@
#include <cstddef>
int main(int argc, char* argv[])
{
enum {N = (sizeof(size_t) == 8 ? 8 : -1)};
enum {N = (sizeof(std::size_t) == 8 ? 8 : -1)};
int x[N];
return 0;
}