🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1347

g++-include/stdio.h under SCO UNIX

#1347
From: Tim Barnett
Date: Thu, 07 Jan 1993 14:45
25 lines
1448 bytes
Platform:   sco-unknown-sysvr3.2.2       [SCO UNIX (SysVr3.2.2)]
G++Version: 2.3.3

Impact:    programs with member functions called 'remove' will often fail,
           with error messages about 'no member function foo::unlink', or
	   foo::unlink may be called where foo::remove was intended.

Cause:     SCO UNIX:/usr/include/stdio.h does
           #define remove(path) unlink(path)
           in order to be POSIX compliant, according to them.

Fix-by:
  I know this is not a 'bug' with G++ as such  (a product which is quite
  incredible in my opinion)  but the only place to patch this braindead
  SCO-ism is in the g++-include/stdio.h header file, hence this suggestion.
  Something like the following, placed after the '#define __stdio_h_recursive'
  would be a boon to all of us poor SCO victims  (and is approximately what
  their version of the AT&T C++ compiler does).

  #if defined(SCO) && defined(remove)
  #undef remove
  #endif

Many thanks
Tim
Technical Details
Message-ID: <9301071445.aa26051@hecate.astro.cf.AC.UK>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!uk.ac.cf.astro.hecate!tim

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!uk.ac.cf.astro.hecate!tim
From: tim@uk.ac.cf.astro.hecate (Tim Barnett)
Subject: g++-include/stdio.h under SCO UNIX
Message-ID: <9301071445.aa26051@hecate.astro.cf.AC.UK>
Sender: gnulists@ai.mit.edu
Reply-To: barnett@cardiff.ac.uk
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 7 Jan 1993 14:45:07 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 26