[haiku-commits] haiku: hrev49043 - headers/posix src/libs/bsd

  • From: jessica.l.hamilton@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 16 Apr 2015 13:41:31 +0200 (CEST)

hrev49043 adds 2 changesets to branch 'master'
old head: 091a80aeed690e629167ea9e5603f51d950e49b8
new head: e4de39c4e423c3804ef17b1076f3dbf2a55ec886
overview:
http://cgit.haiku-os.org/haiku/log/?qt=range&q=e4de39c4e423+%5E091a80aeed69

----------------------------------------------------------------------------

9f17027980c8: assert.h: remove include guards

* including assert.h multiple times with NDEBUG varying is
perfectly legal, and required by POSIX.

e4de39c4e423: libs/bsd: also define _BSD_SOURCE for C files

[ Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx> ]

----------------------------------------------------------------------------

2 files changed, 2 insertions(+), 6 deletions(-)
headers/posix/assert.h | 7 +------
src/libs/bsd/Jamfile | 1 +

############################################################################

Commit: 9f17027980c850c47e9c4f624c4c92d0c335654e
URL: http://cgit.haiku-os.org/haiku/commit/?id=9f17027980c8
Author: Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx>
Date: Thu Apr 16 11:03:40 2015 UTC

assert.h: remove include guards

* including assert.h multiple times with NDEBUG varying is
perfectly legal, and required by POSIX.

----------------------------------------------------------------------------

diff --git a/headers/posix/assert.h b/headers/posix/assert.h
index b866892..98ada79 100644
--- a/headers/posix/assert.h
+++ b/headers/posix/assert.h
@@ -1,10 +1,7 @@
/*
- * Copyright 2004-2012 Haiku, Inc. All Rights Reserved.
+ * Copyright 2004-2015 Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
-#ifndef _ASSERT_H_
-#define _ASSERT_H_
-

#undef assert

@@ -33,5 +30,3 @@ extern void __assert_perror_fail(int error, const char *file,
#else /* NDEBUG */
# define assert(condition) ((void)0)
#endif
-
-#endif /* _ASSERT_H_ */

############################################################################

Revision: hrev49043
Commit: e4de39c4e423c3804ef17b1076f3dbf2a55ec886
URL: http://cgit.haiku-os.org/haiku/commit/?id=e4de39c4e423
Author: Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx>
Date: Thu Apr 16 11:40:23 2015 UTC

libs/bsd: also define _BSD_SOURCE for C files

----------------------------------------------------------------------------

diff --git a/src/libs/bsd/Jamfile b/src/libs/bsd/Jamfile
index 948eadc..d8e6c60 100644
--- a/src/libs/bsd/Jamfile
+++ b/src/libs/bsd/Jamfile
@@ -4,6 +4,7 @@ SetSubDirSupportedPlatforms $(HAIKU_BONE_COMPATIBLE_PLATFORMS) ;

UseHeaders [ FDirName $(HAIKU_TOP) headers compatibility bsd ] : true ;

+SubDirCcFlags [ FDefines _BSD_SOURCE=1 ] ;
SubDirC++Flags [ FDefines _BSD_SOURCE=1 ] ;

local architectureObject ;


Other related posts: