mirror of
https://github.com/libretro/bsnes-libretro-cplusplus98.git
synced 2025-04-13 15:40:27 +00:00
(QNX) Fix QNX compilation
This commit is contained in:
parent
e38e87e314
commit
6e66ad6f6c
@ -31,7 +31,7 @@ inline string substr(const char *src, unsigned start, unsigned length) {
|
||||
|
||||
inline string integer(intmax_t value) {
|
||||
bool negative = value < 0;
|
||||
if(negative) value = abs(value);
|
||||
if(negative) value = abs((int)value);
|
||||
|
||||
char buffer[64];
|
||||
unsigned size = 0;
|
||||
@ -57,7 +57,7 @@ inline string integer(intmax_t value) {
|
||||
|
||||
template<unsigned length_> inline string linteger(intmax_t value) {
|
||||
bool negative = value < 0;
|
||||
if(negative) value = abs(value);
|
||||
if(negative) value = abs((int)value);
|
||||
|
||||
char buffer[64];
|
||||
unsigned size = 0;
|
||||
@ -84,7 +84,7 @@ template<unsigned length_> inline string linteger(intmax_t value) {
|
||||
|
||||
template<unsigned length_> inline string rinteger(intmax_t value) {
|
||||
bool negative = value < 0;
|
||||
if(negative) value = abs(value);
|
||||
if(negative) value = abs((int)value);
|
||||
|
||||
char buffer[64];
|
||||
unsigned size = 0;
|
||||
|
@ -90,7 +90,7 @@ else ifeq ($(platform),ios)
|
||||
$(CXX) -o out/libretro.dylib -install_name $(prefix)/lib/libretro.dylib -dynamiclib obj/libretro.o $(snes_objects) $(link)
|
||||
else ifeq ($(platform),qnx)
|
||||
ar rcs out/libretro.a $(snes_objects) obj/libretro.o
|
||||
$(CXX) -o out/libretro.so -fPIC -shared -Wl,-soname,libretro.so.1 obj/libretro.o $(snes_objects) -ldl -Wl,-version-script=link.T -Wl,-no-undefined
|
||||
$(CXX) -o out/libretro.so -fPIC -shared -Wl,-soname,libretro.so.1 obj/libretro.o $(snes_objects) -lm -Wl,-version-script=link.T -Wl,-no-undefined
|
||||
else ifeq ($(platform),win)
|
||||
$(CXX) -o out/retro.dll -static-libgcc -static-libstdc++ -shared -Wl,--out-implib,libretro.a obj/libretro.o $(snes_objects) $(link) -Wl,-version-script=link.T -Wl,-no-undefined
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user