Skip to content
Snippets Groups Projects
Commit 5f0366c2 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

only define _REENTRANT if not already defined, and only in setup.h

parent 779ca097
No related branches found
No related tags found
No related merge requests found
......@@ -26,8 +26,6 @@
#include <string.h>
#include <errno.h>
#define _REENTRANT
#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
#include <malloc.h>
#else
......
......@@ -26,8 +26,6 @@
#include <string.h>
#include <errno.h>
#define _REENTRANT
#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
#include <malloc.h>
#else
......
......@@ -26,8 +26,6 @@
#include <string.h>
#include <errno.h>
#define _REENTRANT
#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
#include <malloc.h>
#else
......
......@@ -26,8 +26,6 @@
#include <string.h>
#include <errno.h>
#define _REENTRANT
#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
#include <malloc.h>
#else
......
......@@ -26,8 +26,6 @@
#include <string.h>
#include <errno.h>
#define _REENTRANT
#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
#include <malloc.h>
#else
......
......@@ -26,8 +26,6 @@
#include <string.h>
#include <errno.h>
#define _REENTRANT
#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
#include <malloc.h>
#else
......
......@@ -26,8 +26,6 @@
#include <string.h>
#include <errno.h>
#define _REENTRANT
#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
#include <malloc.h>
#else
......
......@@ -95,13 +95,13 @@ typedef unsigned char bool;
#define FORMAT_OFF_T "ld"
#endif
/*#ifdef NEED_REENTRANT*/
#ifndef _REENTRANT
/* Solaris needs _REENTRANT set for a few function prototypes and things to
appear in the #include files. We need to #define it before all #include
files. Unixware needs it to build proper reentrant code. Others may also
need it. */
#define _REENTRANT
/*#endif */
#endif
#include <stdio.h>
#ifdef HAVE_ASSERT_H
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment