parent
ae62e8ca11
commit
e453c408da
5 changed files with 19 additions and 5 deletions
@ -1 +1,2 @@ |
|||||||
#define INTSIZE @INTSIZE@ |
#define INTSIZE @INTSIZE@ |
||||||
|
#define WCHARSIZE @WCHARSIZE@ |
||||||
|
@ -1,10 +1,15 @@ |
|||||||
#include"config.h" |
#include"config.h" |
||||||
#include<stdio.h> |
#include<stdio.h> |
||||||
|
#include<wchar.h> |
||||||
|
|
||||||
int main(int argc, char **argv) { |
int main(int argc, char **argv) { |
||||||
if(INTSIZE != sizeof(int)) { |
if(INTSIZE != sizeof(int)) { |
||||||
fprintf(stderr, "Mismatch: detected int size %d, actual size %d.\n", INTSIZE, (int)sizeof(int)); |
fprintf(stderr, "Mismatch: detected int size %d, actual size %d.\n", INTSIZE, (int)sizeof(int)); |
||||||
return 1; |
return 1; |
||||||
} |
} |
||||||
|
if(WCHARSIZE != sizeof(wchar_t)) { |
||||||
|
fprintf(stderr, "Mismatch: detected wchar size %d, actual size %d.\n", WCHARSIZE, (int)sizeof(wchar_t)); |
||||||
|
return 1; |
||||||
|
} |
||||||
return 0; |
return 0; |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue