Skip to content

Commit b4f778f

Browse files
authored
Merge pull request #269 from eagleivg/xd_dev
Latest Linux fixes
2 parents 5098bb9 + 1682b0b commit b4f778f

File tree

257 files changed

+1089
-902
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

257 files changed

+1089
-902
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
url = https://github.com/OpenXRay/luabind-deboostified.git
77
[submodule "Externals/GameSpy"]
88
path = Externals/GameSpy
9-
url = https://github.com/nitrocaster/GameSpy.git
9+
url = https://github.com/OpenXRay/GameSpy.git
1010
[submodule "Externals/AGS_SDK"]
1111
path = Externals/AGS_SDK
1212
url = https://github.com/GPUOpen-LibrariesAndSDKs/AGS_SDK.git

CMakeLists.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,17 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
6565
endif()
6666
endif()
6767

68-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive --std=c++17 -Wno-attributes -pipe")
69-
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive") This is for the future versions
70-
#set(CMAKE_CXX_STANDARD 14) #Otherwise adds -std=gnu++11 and breaks successful building
71-
#set(CMAKE_CXX_STANDARD_REQUIRED ON)
72-
#set(CMAKE_CXX_EXTENSIONS OFF)
68+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive --std=c++17 -Wno-attributes -pipe -Wl,--no-undefined -fvisibility=hidden")
7369

7470
set(LUA_LIBRARIES luajit)
7571

7672
if(NOT CMAKE_BUILD_TYPE)
7773
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
78-
elseif(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
79-
add_definitions(-DDEBUG)
74+
endif()
75+
76+
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
77+
add_definitions(-DDEBUG -DMIXED)
78+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Og")
8079
set(LUA_LIBRARIES luajit-debug)
8180
endif()
8281

Externals/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ include(luajit.cmake)
22
add_subdirectory(luabind)
33
xr_install_file(luabind)
44
add_subdirectory(cximage)
5+
add_subdirectory(GameSpy)
56
#add_subdirectory(lzo)
67
#add_subdirectory(NVTT)
78
add_subdirectory(OPCODE)

Externals/cximage/ximaenc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ bool CxImage::CheckFormat(CxFile * hFile, DWORD imagetype)
996996
////////////////////////////////////////////////////////////////////////////////
997997
bool CxImage::CheckFormat(BYTE * buffer, DWORD size, DWORD imagetype)
998998
{
999-
if (buffer==NULL || size==NULL){
999+
if (buffer==NULL || size==0){
10001000
strcpy(info.szLastError,"invalid or empty buffer");
10011001
return false;
10021002
}

Externals/luabind

Externals/ode/include/ode/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ typedef struct dJointFeedback {
314314
* when the ODE step function updates the body state.
315315
*/
316316

317-
void dGeomMoved (dGeomID);
317+
ODE_API void dGeomMoved (dGeomID);
318318
dGeomID dGeomGetBodyNext (dGeomID);
319319

320320

Externals/ode/include/ode/config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ extern "C" {
4444
#elif !defined(ODE_LIB)
4545
#define ODE_DLL_API __declspec(dllimport)
4646
#endif
47+
#else
48+
#if defined(__GNUC__) && __GNUC__ >=4
49+
#define ODE_API __attribute__ ((visibility("default")))
50+
#endif
4751
#endif
4852

4953
#if !defined(ODE_API)

Externals/ode/include/ode/objects.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -512,10 +512,10 @@ ODE_API dBodyID dBodyCreate (dWorldID);
512512
*/
513513
ODE_API void dBodyDestroy (dBodyID);
514514

515-
void dWorldAddBody (dWorldID,dBodyID); // X-Ray custom probably
516-
void dWorldAddJoint (dWorldID,dJointID); // X-Ray custom probably
517-
void dWorldRemoveBody (dWorldID,dBodyID); // X-Ray custom probably
518-
void dWorldRemoveJoint (dWorldID,dJointID); // X-Ray custom probably
515+
ODE_API void dWorldAddBody (dWorldID,dBodyID); // X-Ray custom probably
516+
ODE_API void dWorldAddJoint (dWorldID,dJointID); // X-Ray custom probably
517+
ODE_API void dWorldRemoveBody (dWorldID,dBodyID); // X-Ray custom probably
518+
ODE_API void dWorldRemoveJoint (dWorldID,dJointID); // X-Ray custom probably
519519

520520
/**
521521
* @brief Set the body's user-data pointer.
@@ -989,7 +989,7 @@ ODE_API dJointID dJointCreateSlider (dWorldID, dJointGroupID);
989989
* If it is nonzero the joint is allocated in the given joint group.
990990
*/
991991
ODE_API dJointID dJointCreateContact (dWorldID, dJointGroupID, const dContact *);
992-
dJointID dJointCreateContactSpecial (dWorldID, dJointGroupID, const dContact *); // XXX: GSC custom?
992+
ODE_API dJointID dJointCreateContactSpecial (dWorldID, dJointGroupID, const dContact *); // XXX: GSC custom?
993993

994994
/**
995995
* @brief Create a new joint of the hinge2 type.

Externals/ode/ode/src/collision_std.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ int dCollideCapsulePlane (dxGeom *o1, dxGeom *o2, int flags,
5858
#ifdef __cplusplus
5959
extern "C" {
6060
#endif
61-
int dCollideRaySphere (dxGeom *o1, dxGeom *o2, int flags,
61+
ODE_API int dCollideRaySphere (dxGeom *o1, dxGeom *o2, int flags,
6262
dContactGeom *contact, int skip);
63-
int dCollideRayBox (dxGeom *o1, dxGeom *o2, int flags,
63+
ODE_API int dCollideRayBox (dxGeom *o1, dxGeom *o2, int flags,
6464
dContactGeom *contact, int skip);
6565
int dCollideRayCapsule (dxGeom *o1, dxGeom *o2,
6666
int flags, dContactGeom *contact, int skip);

0 commit comments

Comments
 (0)