Skip to content

Commit 55c0b2e

Browse files
committed
Force "os_" prefix for all cJSON functions from OpenSIPS core
This is needed to avoid any symbol colision with the CJSON public library - this library may end up linked by some OpenSIPS modules (like launch_darkly) and such conflict may raise when using such modules.
1 parent 5ffd3bb commit 55c0b2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/cJSON.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ extern "C"
3030
{
3131
#endif
3232

33+
#ifndef CJSON_PREFIX
34+
#define CJSON_PREFIX os_
35+
#endif
36+
3337
#ifdef CJSON_PREFIX
3438

3539
/* helpers */

0 commit comments

Comments
 (0)