-
Notifications
You must be signed in to change notification settings - Fork 125
Open
Description
When trying to build
x86_64-pc-linux-gnu-g++ -pipe -O3 -march=native -fvisibility-inlines-hidden -std=gnu++11 -D_CRT_SECURE_NO_WARNINGS -O3 -DNDEBUG -fsigned-char -ffast-math -fno-strict-aliasing -fomit-frame-pointer -fvisibility=hidden -fcommon -DGIT_VERSION=\"" 222acbd"\" -DOS_LINUX -I./mupen64plus-core/subprojects/md5 -DARCH_MIN_SSE2 -msse -msse2 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -D__LIBRETRO__ -DUSE_FILE32API -DM64P_PLUGIN_API -DM64P_CORE_PROTOTYPES -D_ENDUSER_RELEASE -DSINC_LOWER_QUALITY -DTXFILTER_LIB -D__VEC4_OPT -DMUPENPLUSAPI -I./custom -I./custom/mupen64plus-core -I./custom/android/include -I./custom/GLideN64 -I./GLideN64/src -I./GLideN64/src/osal -I./mupen64plus-core/src -I./mupen64plus-core/src/api -I./custom/mupen64plus-core/plugin/audio_libretro -I./libretro-common/include -I./libretro -I./GLideN64/src/inc -I./custom/dependencies/libpng -I./mupen64plus-core/subprojects/minizip -I./xxHash -I./custom/dependencies/libzlib -fPIC -DCORE -DHAVE_OPENGL -DNEW_DYNAREC=2 -DDYNAREC -I./mupen64plus-core/src/asm_defines/ -c GLideN64/src/GLideNHQ/TxFilterExport.cpp -o GLideN64/src/GLideNHQ/TxFilterExport.o
次のファイルから読み込み: GLideN64/src/GLideNHQ/TxHiResCache.h:31,
次から読み込み: GLideN64/src/GLideNHQ/TxFilter.h:29,
次から読み込み: GLideN64/src/GLideNHQ/TxFilterExport.cpp:28:
GLideN64/src/GLideNHQ/TxHiResLoader.h:31:9: エラー: ‘uint32_t’ does not name a type
31 | uint32_t checkFileName(char* ident, char* fname, uint32_t* pChksum, uint32_t* pPalchksum, uint32_t* pFmt, uint32_t* pSiz) const;
| ^~~~~~~~
GLideN64/src/GLideNHQ/TxHiResLoader.h:1:1: 備考: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
+++ |+#include <cstdint>
1 | #ifndef TXHIRESLOADER_H
GLideN64/src/GLideNHQ/TxHiResLoader.h:32:9: エラー: ‘uint8_t’ does not name a type
32 | uint8_t* loadFileInfoTex(FULLFNAME_CHARTYPE* fullfname, char* fname, int siz, int* pWidth, int* pHeight, uint32_t fmt, ColorFormat* pFormat) const;
| ^~~~~~~
GLideN64/src/GLideNHQ/TxHiResLoader.h:32:9: 備考: ‘uint8_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
make: *** [Makefile:700: GLideN64/src/GLideNHQ/TxFilterExport.o] エラー 1
It is fixed by simply including it
diff --git a/GLideN64/src/GLideNHQ/TxHiResLoader.h b/GLideN64/src/GLideNHQ/TxHiResLoader.h
index 4c13651..70f9761 100644
--- a/GLideN64/src/GLideNHQ/TxHiResLoader.h
+++ b/GLideN64/src/GLideNHQ/TxHiResLoader.h
@@ -1,5 +1,6 @@
#ifndef TXHIRESLOADER_H
#define TXHIRESLOADER_H
+#include <cstdint>
/* support hires textures
* 0: disable
Metadata
Metadata
Assignees
Labels
No labels