Skip to content

Commit

Permalink
Include cstdint.h In mtev_json_object.h
Browse files Browse the repository at this point in the history
mtev_json_object.h uses things like uint64_t, which require ctdint.h.
Not including it here makes other files have to include it and makes
include order matter.

Added the include directly to mtev_json_object.h to avoid this.
  • Loading branch information
pamaddox authored Jun 19, 2024
1 parent 9d1efee commit 2c8af99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/json-lib/mtev_json_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
extern "C" {
#endif

#include <stdint.h>

#define JSON_OBJECT_DEF_HASH_ENTRIES 16

#undef FALSE
Expand Down

0 comments on commit 2c8af99

Please sign in to comment.