X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=includes%2Fstring.h;h=d2b22e198c60e9dc9043aad3c0b04dd42573327f;hp=c5f74b5e50729bf3f97bedf149ca460fcba74285;hb=b41576197133c1211d6ec353faf93f505f573b8a;hpb=93ca2d813f86c52bb9bece81ca564d4831bff9e5 diff --git a/includes/string.h b/includes/string.h index c5f74b5..d2b22e1 100644 --- a/includes/string.h +++ b/includes/string.h @@ -8,11 +8,8 @@ #ifndef _PDCLIB_STRING_H #define _PDCLIB_STRING_H _PDCLIB_STRING_H - -#ifndef _PDCLIB_INT_H -#define _PDCLIB_INT_H _PDCLIB_INT_H #include <_PDCLIB_int.h> -#endif +_PDCLIB_BEGIN_EXTERN_C #ifndef _PDCLIB_SIZE_T_DEFINED #define _PDCLIB_SIZE_T_DEFINED _PDCLIB_SIZE_T_DEFINED @@ -187,4 +184,9 @@ char * strerror( int errnum ); */ size_t strlen( const char * s ); +#ifdef _PDCLIB_POSIX_EX +char * strdup( const char* src ); +#endif + +_PDCLIB_END_EXTERN_C #endif