mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-09-22 10:43:39 -04:00
compiler.h: disable __STRICT_ANSI__ for djgpp
Undefine __STRICT_ANSI__ for djgpp; it removes the prototypes for non-ANSI functions which is not at all what this symbol is intended for. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/* ----------------------------------------------------------------------- *
|
/* ----------------------------------------------------------------------- *
|
||||||
*
|
*
|
||||||
* Copyright 2007-2009 The NASM Authors - All Rights Reserved
|
* Copyright 2007-2016 The NASM Authors - All Rights Reserved
|
||||||
* See the file AUTHORS included with the NASM distribution for
|
* See the file AUTHORS included with the NASM distribution for
|
||||||
* the specific copyright holders.
|
* the specific copyright holders.
|
||||||
*
|
*
|
||||||
@@ -43,6 +43,11 @@
|
|||||||
#ifndef NASM_COMPILER_H
|
#ifndef NASM_COMPILER_H
|
||||||
#define NASM_COMPILER_H 1
|
#define NASM_COMPILER_H 1
|
||||||
|
|
||||||
|
#ifdef __DJGPP__
|
||||||
|
/* DJGPP has header file problems if __STRICT_ANSI__ is defined */
|
||||||
|
# undef __STRICT_ANSI__
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
/* autoconf doesn't define these if they are redundant, but we want to
|
/* autoconf doesn't define these if they are redundant, but we want to
|
||||||
|
Reference in New Issue
Block a user