# Sed script to add DJGPP specific issues to config.h.


/#undef HAVE_ASNPRINTF/ c\
#define HAVE_ASNPRINTF 1
/#undef HAVE_DECL_ASNPRINTF/ c\
#define HAVE_DECL_ASNPRINTF 1
/#define REPLACE_ASNPRINTF 1/ c\
/* #undef REPLACE_ASNPRINTF */

/#undef HAVE_VASNPRINTF/ c\
#define HAVE_VASNPRINTF 1
/#undef HAVE_DECL_VASNPRINTF/ c\
#define HAVE_DECL_VASNPRINTF 1
/#define REPLACE_VASNPRINTF 1/ c\
/* #undef REPLACE_VASNPRINTF */

/#undef HAVE_ASPRINTF/ c\
#define HAVE_ASPRINTF 1
/#undef HAVE_DECL_ASPRINTF/ c\
#define HAVE_DECL_ASPRINTF 1
/#define REPLACE_ASPRINTF 1/ c\
/* #undef REPLACE_ASPRINTF */

/#undef HAVE_VASPRINTF/ c\
#define HAVE_VASPRINTF 1
/#undef HAVE_DECL_VASPRINTF/ c\
#define HAVE_DECL_VASPRINTF 1
/#define REPLACE_VASPRINTF 1/ c\
/* #undef REPLACE_VASPRINTF */

/#undef HAVE_SNPRINTF/ c\
#define HAVE_SNPRINTF 1
/#undef HAVE_DECL_SNPRINTF/ c\
#define HAVE_DECL_SNPRINTF 1
/#define REPLACE_SNPRINTF 1/ c\
/* #undef REPLACE_SNPRINTF */

/#undef HAVE_STRNDUP/ c\
#define HAVE_STRNDUP 1
/#undef HAVE_DECL_STRNDUP/ c\
#define HAVE_DECL_STRNDUP 1
/#define REPLACE_STRNDUP 1/ c\
/* #undef REPLACE_STRNDUP */

/#undef HAVE_STRNLEN/ c\
#define HAVE_STRNLEN 1
/#undef HAVE_DECL_STRNLEN/ c\
#define HAVE_DECL_STRNLEN 1
/#define REPLACE_STRNLEN 1/ c\
/* #undef REPLACE_STRNLEN */
/#define strnlen rpl_strnlen/ c\
/* #undef strnlen */

$ a\
\
/*\
 *  Provide version.h.\
 *  Provide missing functions through libsupp.a.\
 *\
 *  When compiling a GNU application make sure that\
 *  DJGPP's headers are included by libsupp.h and not\
 *  the ones provided or generated by GNULIB.\
 */\
#define __need_mbstate_t\
#define __need_system_fcntl_h\
#define __need_FILE\
#define __need___FILE\
#include <sys/version.h>  /*  gcc 4.3.0 no longer includes this by default.  */\
#include <libsupp.h>\
#undef __need___FILE\
#undef __need__FILE\
#undef __need_system_fcntl_h\
#undef __need_mbstate_t

