One-stop Visual Studio Code Extension to compile, debug and profile Amiga C/C++ programs compiled by the bundled gcc 12.2 with the bundled WinUAE/FS-UAE.
GNU General Public License v3.0
316
stars
39
forks
source link
fatal error: stdint.h: No such file or directory #224
I am trying to port some libraries, but found that including stdint.h fails, although __STDC_VERSION__ is defined to be at least 199901L.
The library provides its own stdint types, but uses if available. It tests availability like this:
However, it seems that doing so includes %USERPROFILE%.vscode\extensions\bartmanabyss.amiga-debug-1.7.1\bin\win32\opt\lib\gcc\m68k-amiga-elf\12.2.0\include\stdint.h which looks like this:
Hello,
I am trying to port some libraries, but found that including stdint.h fails, although __STDC_VERSION__ is defined to be at least 199901L. The library provides its own stdint types, but uses if available. It tests availability like this:
However, it seems that doing so includes %USERPROFILE%.vscode\extensions\bartmanabyss.amiga-debug-1.7.1\bin\win32\opt\lib\gcc\m68k-amiga-elf\12.2.0\include\stdint.h which looks like this:
The line
# include_next <stdint.h>
causes the error.A work around is to redefine __STDC_HOSTED__ to 0, so it will include stdint-gcc.h. I don't know if this is intended, though.