From 9b26fdf57d2974f8b51b7b675bbfd6a30ea9fdff Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Wed, 31 Oct 2018 13:25:13 +0000 Subject: [PATCH] Update: Added special header typedef.h used only for defining types --- Makefile.am | 3 ++- include/igloo/typedef.h | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 include/igloo/typedef.h diff --git a/Makefile.am b/Makefile.am index 5428709..ce1c4eb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,7 +18,8 @@ pkginclude_HEADERS = \ include/igloo/thread.h \ include/igloo/timing.h \ include/igloo/ro.h \ - include/igloo/types.h + include/igloo/types.h \ + include/igloo/typedef.h libigloo_la_SOURCES = \ src/libigloo.c \ diff --git a/include/igloo/typedef.h b/include/igloo/typedef.h new file mode 100644 index 0000000..bc5bbb2 --- /dev/null +++ b/include/igloo/typedef.h @@ -0,0 +1,35 @@ +/* Copyright (C) 2018 Marvin Scholz + * Copyright (C) 2012 Philipp "ph3-der-loewe" Schafft + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ + +#ifndef _LIBIGLOO__TYPEDEF_H_ +#define _LIBIGLOO__TYPEDEF_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +/* This header includes only macros needed to define types. + * This header must be included before "types.h" and "ro.h" if used. + */ + +#ifdef __cplusplus +} +#endif + +#endif