Skip to content

Commit f995a71

Browse files
committed
Disable windows warnings for strdup(), etc.
1 parent fa0f29f commit f995a71

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

alloc.c

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2828
* POSSIBILITY OF SUCH DAMAGE.
2929
*/
30+
31+
/* turn of windows warnings for _strcmp etc. */
32+
#define _CRT_NONSTDC_NO_DEPRECATE
3033

3134
#include "fmacros.h"
3235
#include "alloc.h"

async.c

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
* POSSIBILITY OF SUCH DAMAGE.
3030
*/
3131

32+
/* turn of windows warnings for _strcmp etc. */
33+
#define _CRT_NONSTDC_NO_DEPRECATE
34+
3235
#include "fmacros.h"
3336
#include "alloc.h"
3437
#include <stdlib.h>

read.c

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
* POSSIBILITY OF SUCH DAMAGE.
3030
*/
3131

32+
/* turn of windows warnings for _strcmp etc. */
33+
#define _CRT_NONSTDC_NO_DEPRECATE
34+
3235
#include "fmacros.h"
3336
#include <string.h>
3437
#include <stdlib.h>

0 commit comments

Comments
 (0)