Fix some IBM XL C/C++ issues

pull/748/head
Jeffrey Walton 2018-11-13 23:39:39 -05:00
parent 7f8d3e8882
commit b3941a433d
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 2 additions and 4 deletions

View File

@ -1,7 +1,6 @@
#include <string> #include <string>
#include <cstdint>
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
uint32_t x=0; unsigned int x=0;
return x; return x;
} }

View File

@ -1,7 +1,6 @@
#include <stdint.h>
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
uint32_t a, b, c, d; unsigned int a, b, c, d;
asm volatile ( "cpuid" : "+a"(a), "=b"(b), "+c"(c), "=d"(d) ); asm volatile ( "cpuid" : "+a"(a), "=b"(b), "+c"(c), "=d"(d) );
return 0; return 0;