]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Introduce system.h
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 29 Aug 2010 09:54:08 +0000 (11:54 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 29 Aug 2010 09:54:08 +0000 (11:54 +0200)
ccache.h
dev.mk.in
system.h [new file with mode: 0644]

index 0272a52adcb2ed872b80d9e4eaaa4526d559873e..1b0cde05a699e16d6bd0586eb7a7ba15727e1a77 100644 (file)
--- a/ccache.h
+++ b/ccache.h
@@ -1,18 +1,10 @@
 #ifndef CCACHE_H
 #define CCACHE_H
 
-#include "config.h"
+#include "system.h"
 #include "mdfour.h"
 #include "counters.h"
 
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/file.h>
-#include <unistd.h>
-#include <stdarg.h>
-#include <stdio.h>
-#include <string.h>
-
 #ifdef __GNUC__
 #define ATTR_FORMAT(x, y, z) __attribute__((format (x, y, z)))
 #else
index 4f0af54d437adb50fd7b7eac241cbcc1299560a9..5e31a8fc773b2b5101ff83e0c0c7a5d1b91cbac8 100644 (file)
--- a/dev.mk.in
+++ b/dev.mk.in
@@ -23,7 +23,7 @@ built_dist_files = $(generated_docs)
 headers = \
     ccache.h hashtable.h hashtable_itr.h hashtable_private.h hashutil.h \
     manifest.h mdfour.h counters.h murmurhashneutral2.h getopt_long.h \
-    language.h \
+    language.h system.h \
     test/framework.h test/suites.h test/util.h
 
 files_to_clean += *.tar.bz2 *.tar.gz *.xml .deps/*
diff --git a/system.h b/system.h
new file mode 100644 (file)
index 0000000..cc50b1d
--- /dev/null
+++ b/system.h
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2010 Joel Rosdahl
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the Free
+ * Software Foundation; either version 3 of the License, or (at your option)
+ * any later version.
+ *
+ * This program 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 General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc., 51
+ * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef CCACHE_SYSTEM_H
+#define CCACHE_SYSTEM_H
+
+#include "config.h"
+#include <sys/file.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <inttypes.h>
+#include <stdarg.h>
+#include <stddef.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
+#endif /* CCACHE_SYSTEM_H */