diff options
author | Allen Winter <allen.winter@kdab.com> | 2015-05-01 19:20:39 -0400 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2015-05-01 19:20:39 -0400 |
commit | 01011fd7bd9916e66ce4d4d7caca973d30d42ad7 (patch) | |
tree | f21f6ac7f9f4028163d0819d7a88eeb09d412e6b /config.h.cmake | |
parent | 43b9036c8bf6d6c457fff87411d6c1805dd03937 (diff) | |
download | libical-git-01011fd7bd9916e66ce4d4d7caca973d30d42ad7.tar.gz |
icalcalendar - configure a mkdir()
Diffstat (limited to 'config.h.cmake')
-rw-r--r-- | config.h.cmake | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/config.h.cmake b/config.h.cmake index 74e542a6..aa00e006 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -84,6 +84,12 @@ /* Define to 1 if you have the `_access' function. */ #cmakedefine HAVE__ACCESS 1 +/* Define to 1 if you have the `mkdir' function. */ +#cmakedefine HAVE_MKDIR 1 + +/* Define to 1 if you have the `_mkdir' function. */ +#cmakedefine HAVE__MKDIR 1 + /* Define to 1 if you have the `open' function. */ #cmakedefine HAVE_OPEN 1 @@ -142,9 +148,6 @@ /* Define to 1 if you DO NOT WANT to see deprecated messages */ #define NO_WARN_DEPRECATED ${NO_WARN_DEPRECATED} -/* Name of package */ -#define PACKAGE "${CMAKE_PROJECT_NAME}" - /* Define to the address where bug reports for this package should be sent. */ #define PACKAGE_BUGREPORT "${PROJECT_URL}" @@ -169,9 +172,6 @@ /* whether we should bring our own TZ-Data */ #cmakedefine USE_BUILTIN_TZDATA -/* Version number of package */ -#define VERSION "${PROJECT_VERSION}" - /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a `char[]'. */ #cmakedefine YYTEXT_POINTER 1 @@ -284,6 +284,19 @@ typedef int pid_t; #endif #endif +/* mkdir - system function to create a directory */ +#if defined(HAVE__MKDIR) +#include <direct.h> +#define mkdir(path, mode) _mkdir(path) +#else +#if !defined(HAVE_MKDIR) +#error "No create directory system function available" +#else +#include <sys/types.h> +#include <sys/stat.h> +#endif +#endif + /* open - system function to open a file */ #if defined(HAVE__OPEN) #include <io.h> |