(QNX) Fix QNX compilation

This commit is contained in:
twinaphex 2014-01-18 00:52:15 +01:00
parent e38e87e314
commit 6e66ad6f6c
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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