svn commit: r225801 - head/include

Jung-uk Kim jkim at FreeBSD.org
Tue Sep 27 16:33:18 UTC 2011


Author: jkim
Date: Tue Sep 27 16:33:17 2011
New Revision: 225801
URL: http://svn.freebsd.org/changeset/base/225801

Log:
  Avoid accidental conflicts with C++ operator keywords.
  
  MFC after:	1 week

Modified:
  head/include/iso646.h

Modified: head/include/iso646.h
==============================================================================
--- head/include/iso646.h	Tue Sep 27 15:57:13 2011	(r225800)
+++ head/include/iso646.h	Tue Sep 27 16:33:17 2011	(r225801)
@@ -29,6 +29,8 @@
 #ifndef _ISO646_H_
 #define	_ISO646_H_
 
+#ifndef __cplusplus
+
 #define	and	&&
 #define	and_eq	&=
 #define	bitand	&
@@ -41,4 +43,6 @@
 #define	xor	^
 #define	xor_eq	^=
 
+#endif /* !__cplusplus */
+
 #endif /* !_ISO646_H_ */


More information about the svn-src-head mailing list