diff options
author | Anton L. Šijanec <anton@sijanec.eu> | 2020-05-01 15:18:12 +0200 |
---|---|---|
committer | Anton L. Šijanec <anton@sijanec.eu> | 2020-05-01 15:18:12 +0200 |
commit | 6961e4237f24306ab2475f4f527a7c802134c4d9 (patch) | |
tree | 0d18e9dd78fe3dee482872a65fbf823e00cd31db /lib/mkdirp.c | |
parent | folder structure README.mf (diff) | |
download | bverbose-6961e4237f24306ab2475f4f527a7c802134c4d9.tar bverbose-6961e4237f24306ab2475f4f527a7c802134c4d9.tar.gz bverbose-6961e4237f24306ab2475f4f527a7c802134c4d9.tar.bz2 bverbose-6961e4237f24306ab2475f4f527a7c802134c4d9.tar.lz bverbose-6961e4237f24306ab2475f4f527a7c802134c4d9.tar.xz bverbose-6961e4237f24306ab2475f4f527a7c802134c4d9.tar.zst bverbose-6961e4237f24306ab2475f4f527a7c802134c4d9.zip |
Diffstat (limited to 'lib/mkdirp.c')
-rw-r--r-- | lib/mkdirp.c | 5 |
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); |