summaryrefslogtreecommitdiffstats
path: root/lib/mkdirp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mkdirp.c')
-rw-r--r--lib/mkdirp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/mkdirp.c b/lib/mkdirp.c
index 8c79cf4..a6c58e6 100644
--- a/lib/mkdirp.c
+++ b/lib/mkdirp.c
@@ -1,12 +1,9 @@
// borrowed from https://gist.github.com/JonathonReinhart/8c0d90191c38af2dcadb102c4e202950
-
+#pragma once
#include <string.h>
#include <limits.h> /* PATH_MAX */
#include <sys/stat.h> /* mkdir(2) */
#include <errno.h>
-#ifndef PATH_MAX
-#define PATH_MAX 255
-#endif
int mkdir_p(const char *path) {
/* Adapted from http://stackoverflow.com/a/2336245/119527 */
const size_t len = strlen(path);