From 81e80eebb0898f873aaecf907efc8eb2996997f2 Mon Sep 17 00:00:00 2001 From: "Emden R. Gansner" Date: Wed, 4 Sep 2013 15:39:12 -0400 Subject: [PATCH] Fix for 2352 --- lib/cdt/cdt.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/cdt/cdt.h b/lib/cdt/cdt.h index 3c2586c93..5614d5e67 100644 --- a/lib/cdt/cdt.h +++ b/lib/cdt/cdt.h @@ -6,6 +6,10 @@ ** Written by Kiem-Phong Vo */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #define CDT_VERSION 20050420L #ifndef Void_t @@ -17,6 +21,12 @@ #endif #include /* size_t */ +#ifdef HAVE_STRING_H +#include +#else +extern int memcmp _ARG_((const Void_t*, const Void_t*, size_t)); +extern int strcmp _ARG_((const char*, const char*)); +#endif #ifndef _BEGIN_EXTERNS_ #define _BEGIN_EXTERNS_ @@ -238,10 +248,12 @@ extern int dtsize _ARG_((Dt_t*)); extern int dtstat _ARG_((Dt_t*, Dtstat_t*, int)); extern unsigned int dtstrhash _ARG_((unsigned int, Void_t*, int)); +#if 0 #if !_PACKAGE_ast extern int memcmp _ARG_((const Void_t*, const Void_t*, size_t)); extern int strcmp _ARG_((const char*, const char*)); #endif +#endif #undef extern _END_EXTERNS_ -- 2.49.0