Skip to content

Commit

Permalink
Force "os_" prefix for all cJSON functions from OpenSIPS core
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bogdan-iancu committed Jan 31, 2024
1 parent 5ffd3bb commit 55c0b2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/cJSON.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ extern "C"
{
#endif

#ifndef CJSON_PREFIX
#define CJSON_PREFIX os_
#endif

#ifdef CJSON_PREFIX

/* helpers */
Expand Down

0 comments on commit 55c0b2e

Please sign in to comment.