mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
Make sjson its own object
git-svn-id: https://svn.eduke32.com/eduke32@8091 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
e3f1399484
commit
475743424f
7 changed files with 15 additions and 5 deletions
|
@ -258,6 +258,7 @@ engine_objs := \
|
|||
miniz_tdef.c \
|
||||
fix16.cpp \
|
||||
fix16_str.cpp \
|
||||
sjson.cpp \
|
||||
|
||||
engine_editor_objs := \
|
||||
build.cpp \
|
||||
|
|
|
@ -275,6 +275,7 @@
|
|||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\sjson.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\smalltextfont.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\softsurface.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\texcache.cpp" />
|
||||
|
|
|
@ -146,6 +146,9 @@
|
|||
<ClCompile Include="..\..\source\build\src\sdlkeytrans.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\sjson.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\smalltextfont.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
@ -192,7 +192,8 @@ ENGINE_OBJS= \
|
|||
$(ENGINE_OBJ)\miniz_tinfl.$o \
|
||||
$(ENGINE_OBJ)\miniz_tdef.$o \
|
||||
$(ENGINE_OBJ)\fix16.$o \
|
||||
$(ENGINE_OBJ)\fix16_str.$o
|
||||
$(ENGINE_OBJ)\fix16_str.$o \
|
||||
$(ENGINE_OBJ)\sjson.$o \
|
||||
|
||||
|
||||
ENGINE_EDITOR_OBJS=$(ENGINE_OBJ)\build.$o \
|
||||
|
|
5
source/build/src/sjson.cpp
Normal file
5
source/build/src/sjson.cpp
Normal file
|
@ -0,0 +1,5 @@
|
|||
|
||||
#include "compat.h"
|
||||
|
||||
#define SJSON_IMPLEMENT
|
||||
#include "sjson.h"
|
|
@ -5657,7 +5657,6 @@ HORIZONLY:;
|
|||
}
|
||||
|
||||
|
||||
#define SJSON_IMPLEMENT
|
||||
#include "sjson.h"
|
||||
|
||||
int portableBackupSave(const char * path, const char * name, int volume, int level)
|
||||
|
|
6
source/thirdparty/include/sjson.h
vendored
6
source/thirdparty/include/sjson.h
vendored
|
@ -324,9 +324,9 @@ bool sjson_check(const sjson_node* node, char errmsg[256]);
|
|||
#ifndef sjson_malloc
|
||||
# include <stdlib.h>
|
||||
# include <string.h>
|
||||
# define sjson_malloc(user, size) (UNREFERENCED_PARAMETER(user), malloc(size))
|
||||
# define sjson_free(user, ptr) (UNREFERENCED_PARAMETER(user), free(ptr))
|
||||
# define sjson_realloc(user, ptr, size) (UNREFERENCED_PARAMETER(user), realloc(ptr, size))
|
||||
# define sjson_malloc(user, size) ((UNREFERENCED_PARAMETER(user)), malloc(size))
|
||||
# define sjson_free(user, ptr) ((UNREFERENCED_PARAMETER(user)), free(ptr))
|
||||
# define sjson_realloc(user, ptr, size) ((UNREFERENCED_PARAMETER(user)), realloc(ptr, size))
|
||||
#endif
|
||||
|
||||
#ifndef sjson_assert
|
||||
|
|
Loading…
Reference in a new issue