ne_defs.h | ne_defs.h | |||
---|---|---|---|---|
/* | /* | |||
Standard definitions for neon headers | Standard definitions for neon headers | |||
Copyright (C) 2003-2008, Joe Orton <joe@manyfish.co.uk> | Copyright (C) 2003-2008, 2010, Joe Orton <joe@manyfish.co.uk> | |||
This library is free software; you can redistribute it and/or | This library is free software; you can redistribute it and/or | |||
modify it under the terms of the GNU Library General Public | modify it under the terms of the GNU Library General Public | |||
License as published by the Free Software Foundation; either | License as published by the Free Software Foundation; either | |||
version 2 of the License, or (at your option) any later version. | version 2 of the License, or (at your option) any later version. | |||
This library is distributed in the hope that it will be useful, | This library is distributed in the hope that it will be useful, | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
Library General Public License for more details. | Library General Public License for more details. | |||
skipping to change at line 54 | skipping to change at line 54 | |||
#if defined(WIN32) && !defined(ssize_t) | #if defined(WIN32) && !defined(ssize_t) | |||
#define ssize_t int | #define ssize_t int | |||
#endif | #endif | |||
#ifdef __NETWARE__ | #ifdef __NETWARE__ | |||
#include <time.h> /* for time_t */ | #include <time.h> /* for time_t */ | |||
#endif | #endif | |||
#ifdef __GNUC__ | #ifdef __GNUC__ | |||
#if __GNUC__ >= 3 | #if __GNUC__ >= 3 | |||
#ifndef NE_PRIVATE | ||||
#define NE_PRIVATE __attribute__((visibility ("hidden"))) | #define NE_PRIVATE __attribute__((visibility ("hidden"))) | |||
#endif | ||||
#define ne_attribute_malloc __attribute__((malloc)) | #define ne_attribute_malloc __attribute__((malloc)) | |||
#else | #else | |||
#define ne_attribute_malloc | #define ne_attribute_malloc | |||
#endif | #endif | |||
#if __GNUC__ > 3 | #if __GNUC__ > 3 | |||
#define ne_attribute_sentinel __attribute__((sentinel)) | #define ne_attribute_sentinel __attribute__((sentinel)) | |||
#else | #else | |||
#define ne_attribute_sentinel | #define ne_attribute_sentinel | |||
#endif | #endif | |||
#define ne_attribute(x) __attribute__(x) | #define ne_attribute(x) __attribute__(x) | |||
End of changes. 3 change blocks. | ||||
1 lines changed or deleted | 3 lines changed or added | |||