[RFC] 9533: fifth iteration

Danny Smith danny_r_smith_2001@yahoo.co.nz
Sun Mar 23 21:01:00 GMT 2003


I've been told that this type of define:

+#  define _GLIBCPP_ISREG(x) (S_IFREG & (x))

can cause problems for some systems on which each flag does not have
its own bit

This is the usual way (from gcc/system.h)
#ifndef S_ISREG
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#endif


Danny

http://mobile.yahoo.com.au - Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.



More information about the Libstdc++ mailing list