aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-07-07 22:59:54 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-07-07 22:59:54 +0200
commit55365b5dc3fe086e5dc3f1b9b9ec5d0da2a4ca5e (patch)
treeb84eaf4ca91ca5795d9698058fcfc6e4404b8d5e /src/blogc.c
parent3854053b3c533bf1e72bd21cd36f4c5fe3a1b74a (diff)
downloadblogc-55365b5dc3fe086e5dc3f1b9b9ec5d0da2a4ca5e.tar.gz
blogc-55365b5dc3fe086e5dc3f1b9b9ec5d0da2a4ca5e.tar.bz2
blogc-55365b5dc3fe086e5dc3f1b9b9ec5d0da2a4ca5e.zip
*: fixed includes
this refactoring was done with the help of the 'include-what-you-use' program. if this breaks the build for you, please report!
Diffstat (limited to 'src/blogc.c')
-rw-r--r--src/blogc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/blogc.c b/src/blogc.c
index 20e1756..c90070d 100644
--- a/src/blogc.c
+++ b/src/blogc.c
@@ -14,18 +14,15 @@
#include <sys/stat.h>
#endif /* HAVE_SYS_STAT_H */
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif /* HAVE_SYS_TYPES_H */
-
#include <errno.h>
#include <locale.h>
#include <stdbool.h>
#include <stdio.h>
+#include <stdint.h>
+#include <stdlib.h>
#include <string.h>
#include "debug.h"
-#include "source-parser.h"
#include "template-parser.h"
#include "loader.h"
#include "renderer.h"
@@ -78,7 +75,7 @@ blogc_mkdir_recursive(const char *filename)
for (char *tmp = fname; *tmp != '\0'; tmp++) {
if (*tmp != '/' && *tmp != '\\')
continue;
-#if defined(HAVE_SYS_STAT_H) && defined(HAVE_SYS_TYPES_H)
+#ifdef HAVE_SYS_STAT_H
char bkp = *tmp;
*tmp = '\0';
if ((strlen(fname) > 0) &&