Check if the compiler knows about the __malloc__ attribute.

This commit is contained in:
Guus Sliepen 2003-07-31 11:17:39 +00:00
parent d798b8b3d8
commit da3078c63a
3 changed files with 31 additions and 3 deletions

View file

@ -17,7 +17,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$Id: list.h,v 1.1.2.10 2003/07/12 17:48:38 guus Exp $
$Id: list.h,v 1.1.2.11 2003/07/31 11:17:39 guus Exp $
*/
#ifndef __TINC_LIST_H__
@ -47,7 +47,7 @@ typedef struct list_t {
/* (De)constructors */
extern list_t *list_alloc(list_action_t) __attribute__ ((malloc));
extern list_t *list_alloc(list_action_t) __attribute__ ((__malloc__));
extern void list_free(list_t *);
extern list_node_t *list_alloc_node(void);
extern void list_free_node(list_t *, list_node_t *);