remove os.[hc] in favor of generated config.h

new cmake files to find lua
This commit is contained in:
Enno Rehling 2014-01-01 19:14:26 +01:00
parent 4a08cdd23e
commit 3660c47afb
7 changed files with 1 additions and 52 deletions

2
cmake

@ -1 +1 @@
Subproject commit 51114339b929a662fb85d45ab6310b0423ac4cef
Subproject commit ddd0136d4e99b0daab16361aad5338ad3ca4b808

View File

@ -169,7 +169,6 @@ set (LIB_SRC
util/log.c
util/message.c
util/nrmessage.c
util/os.c
util/parser.c
util/rand.c
util/resolve.c

View File

@ -59,7 +59,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <util/bsdstring.h>
#include <util/language.h>
#include <util/log.h>
#include <util/os.h>
#include <util/parser.h>
#include <quicklist.h>
#include <util/rand.h>

View File

@ -52,7 +52,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <util/language.h>
#include <util/lists.h>
#include <util/log.h>
#include <util/os.h>
#include <quicklist.h>
/* libc includes */

View File

@ -61,7 +61,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <util/language.h>
#include <util/lists.h>
#include <util/log.h>
#include <util/os.h>
#include <util/parser.h>
#include <quicklist.h>
#include <util/rand.h>

View File

@ -1,18 +0,0 @@
#include "os.h"
#if defined(WIN32)
#include <direct.h>
#else /* WIN32 */
#include <sys/types.h>
#include <sys/stat.h>
#endif /* WIN32 */
int os_mkdir(const char *path, int mode)
{
#ifdef WIN32
mode = mode;
return _mkdir(path);
#else /* POSIX is our last hope */
return mkdir(path, (mode_t) mode);
#endif /* WIN32 */
}

View File

@ -1,29 +0,0 @@
/*
Copyright (c) 1998-2010, Enno Rehling <enno@eressea.de>
Katja Zedel <katze@felidae.kn-bremen.de
Christian Schlittchen <corwin@amber.kn-bremen.de>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
**/
#ifndef _OS_H
#define _OS_H
#ifdef __cplusplus
extern "C" {
#endif
extern int os_mkdir(const char *path, int mode);
#ifdef __cplusplus
}
#endif
#endif