Define ssize_t in Haiku headers when building with GCC4 (see also #5719). This could imply a conflict with old gcc4 Haiku builds.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37380 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2010-07-03 16:39:29 +00:00
parent c31429c581
commit 818786a83a
+8 -3
View File
@@ -1,5 +1,5 @@
/* /*
* Copyright 2008, Haiku Inc. All Rights Reserved. * Copyright 2008-2010, Haiku Inc. All Rights Reserved.
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
*/ */
#ifndef _SIZE_T_H_ #ifndef _SIZE_T_H_
@@ -7,7 +7,12 @@
#include <stddef.h> #include <stddef.h>
/* TODO: ATM gcc's stddef.h defines ssize_t for BeOS.h. We should fix this. /* ATM we don't define ssize_t for GCC2 */
* typedef long signed int ssize_t; */ #if __GNUC__ > 2
#ifndef __ssize_t__
#define __ssize_t__
typedef long signed int ssize_t;
#endif /* __ssize_t__ */
#endif /* __GNUC__ > 2 */
#endif /* _SIZE_T_H_ */ #endif /* _SIZE_T_H_ */