Skip to content

Commit aa3b89a

Browse files
Copilotstarseeker
andcommitted
Fix strdup implicit declaration errors for clang 18.1.3 compatibility
Co-authored-by: starseeker <238416+starseeker@users.noreply.github.com>
1 parent 6bbd460 commit aa3b89a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/exp2python/src/classes_misc_python.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#define CLASSES_MISC_C
2+
#define _POSIX_C_SOURCE 200809L
23
#include <stdlib.h>
4+
#include <string.h>
35
#include "classes.h"
46
/*******************************************************************
57
** FedEx parser output module for generating C++ class definitions

src/exp2python/src/classes_python.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ N350 ( August 31, 1993 ) of ISO 10303 TC184/SC4/WG7.
2424
/* this is used to add new dictionary calls */
2525
/* #define NEWDICT */
2626

27+
#define _POSIX_C_SOURCE 200809L
2728
#include <stdlib.h>
29+
#include <string.h>
2830
#include <errno.h>
2931

3032
#include "classes.h"

0 commit comments

Comments
 (0)