Skip to content

Commit

Permalink
enable locale support for cJSON
Browse files Browse the repository at this point in the history
Fixes #14
the response json wasn't parsed properly because cJSON didn't repsect
the locale of the system, which affected locale-dependent functions like strtod
  • Loading branch information
mohad12211 committed Feb 11, 2024
1 parent 46f0809 commit f067506
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/cJSON.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
THE SOFTWARE.
*/

#ifndef ENABLE_LOCALES
#define ENABLE_LOCALES 1
#endif

/* cJSON */
/* JSON parser in C. */

Expand Down

0 comments on commit f067506

Please sign in to comment.