This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: #define vfprintf


  In message <r2iuojeyg0.fsf@happy.cygnus.com>you write:
  > law@cygnus.com (Jeffrey A Law) writes:
  > 
  > > extern vfprintf ();
  > > 
  > > Some compilers (notably HPs) will give an error because you don't
  > > pass enough arguments to the "macro":
  > 
  > This code is bogus.  The source must be
  > 
  > #ifndef vfprintf
  > extern vfprintf ();
  > #endif
  > 
  > 
  > The C standard explicitly says that each function can be defined as a
  > macro (in addition to a function definition).
Bogus or not, that's what appears in the hp include files and we
must be able to compile it with the HP bundled compiler, which is
not ANSI complaint.

jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]