1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Fix warnings in HTML5 build outside platform files

This commit is contained in:
Leon Krause
2018-10-05 22:59:05 +02:00
parent a41cf404a9
commit 5f45476dc1
2 changed files with 1 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ class Math {
public: public:
Math() {} // useless to instance Math() {} // useless to instance
static const uint64_t RANDOM_MAX = 4294967295; static const uint64_t RANDOM_MAX = 0xFFFFFFFF;
static _ALWAYS_INLINE_ double sin(double p_x) { return ::sin(p_x); } static _ALWAYS_INLINE_ double sin(double p_x) { return ::sin(p_x); }
static _ALWAYS_INLINE_ float sin(float p_x) { return ::sinf(p_x); } static _ALWAYS_INLINE_ float sin(float p_x) { return ::sinf(p_x); }

View File

@@ -42,12 +42,8 @@
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#ifndef NO_FCNTL #ifndef NO_FCNTL
#ifdef __HAIKU__
#include <fcntl.h> #include <fcntl.h>
#else #else
#include <sys/fcntl.h>
#endif
#else
#include <sys/ioctl.h> #include <sys/ioctl.h>
#endif #endif
#include <netinet/in.h> #include <netinet/in.h>