Workaround for multiple definition of generic array handling
This commit is contained in:
parent
ed3c9e0b9e
commit
83e96be596
|
@ -19,6 +19,7 @@
|
||||||
# define LIBSYSTEM_SYSTEM_H
|
# define LIBSYSTEM_SYSTEM_H
|
||||||
|
|
||||||
|
|
||||||
|
# include "System/array.h"
|
||||||
# include "System/buffer.h"
|
# include "System/buffer.h"
|
||||||
# include "System/config.h"
|
# include "System/config.h"
|
||||||
# include "System/error.h"
|
# include "System/error.h"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
/* Copyright (c) 2006-2012 Pierre Pronchery <khorben@defora.org> */
|
/* Copyright (c) 2006-2014 Pierre Pronchery <khorben@defora.org> */
|
||||||
/* This file is part of DeforaOS System libSystem */
|
/* This file is part of DeforaOS System libSystem */
|
||||||
/* This program is free software: you can redistribute it and/or modify
|
/* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Lesser General Public License as published by
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
@ -18,12 +18,15 @@
|
||||||
#ifndef LIBSYSTEM_ARRAY_H
|
#ifndef LIBSYSTEM_ARRAY_H
|
||||||
# define LIBSYSTEM_ARRAY_H
|
# define LIBSYSTEM_ARRAY_H
|
||||||
|
|
||||||
|
# include <sys/types.h>
|
||||||
|
|
||||||
|
|
||||||
/* Array */
|
/* Array */
|
||||||
/* macros */
|
/* macros */
|
||||||
# define ARRAY(type, name) \
|
# define ARRAY(type, name) \
|
||||||
typedef Array name ## Array; \
|
typedef struct _Array name ## Array; \
|
||||||
Array * name ## array_new(void) { return array_new(sizeof(type)); }
|
static Array * name ## array_new(void) \
|
||||||
|
{ return array_new(sizeof(type)); }
|
||||||
|
|
||||||
|
|
||||||
/* types */
|
/* types */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user