diff --git a/include/System.h b/include/System.h index 6f571f6..67319a2 100644 --- a/include/System.h +++ b/include/System.h @@ -19,6 +19,7 @@ # define LIBSYSTEM_SYSTEM_H +# include "System/array.h" # include "System/buffer.h" # include "System/config.h" # include "System/error.h" diff --git a/include/System/array.h b/include/System/array.h index ecfe1e1..85f08d0 100644 --- a/include/System/array.h +++ b/include/System/array.h @@ -1,5 +1,5 @@ /* $Id$ */ -/* Copyright (c) 2006-2012 Pierre Pronchery */ +/* Copyright (c) 2006-2014 Pierre Pronchery */ /* This file is part of DeforaOS System libSystem */ /* 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 @@ -18,12 +18,15 @@ #ifndef LIBSYSTEM_ARRAY_H # define LIBSYSTEM_ARRAY_H +# include + /* Array */ /* macros */ # define ARRAY(type, name) \ - typedef Array name ## Array; \ - Array * name ## array_new(void) { return array_new(sizeof(type)); } + typedef struct _Array name ## Array; \ + static Array * name ## array_new(void) \ + { return array_new(sizeof(type)); } /* types */