Fix qnx support

This commit is contained in:
Vladimir Serbinenko 2020-05-02 00:18:11 +02:00
parent 6e318cf691
commit 263a93e1a9
4 changed files with 8 additions and 0 deletions

View File

@ -208,6 +208,7 @@ else ifeq ($(platform), qnx)
CXX = QCC -Vgcc_ntoarmv7le_cpp
AR = QCC -Vgcc_ntoarmv7le
PLATFORM_DEFINES := -D__BLACKBERRY_QNX__ -fexceptions -marm -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=softfp
CFLAGS += -std=gnu99
# ANDROID STANDALONE TOOLCHAIN
else ifeq ($(platform), androidstc)

View File

@ -28,7 +28,9 @@
// Compiler specifics.
#define HAVE_BOOL 1
#define HAVE_BUILTIN_EXPECT 1
#ifndef __QNX__
#define HAVE_LOG1P 1
#endif
// Define bool, true, and false for C++ compilers that lack these keywords.
#if !HAVE_BOOL

View File

@ -16,6 +16,10 @@
#ifdef HAVE_MMINTRIN_H
# include <mmintrin.h>
#endif
#ifdef __QNX__
#include <math.h>
#include <string.h>
#endif
#include <stdint.h>
#include <sstream>
#include <string>

View File

@ -26,6 +26,7 @@
*
*/
#include <string.h>
#include "vice.h"
#ifdef _M_ARM