Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
lfs.h
Go to the documentation of this file.
1/*
2** LuaFileSystem
3** Copyright Kepler Project 2003 - 2020
4** (http://keplerproject.github.io/luafilesystem)
5*/
6
7/* Define 'chdir' for systems that do not implement it */
8#ifdef NO_CHDIR
9#define chdir(p) (-1)
10#define chdir_error "Function 'chdir' not provided by system"
11#else
12#define chdir_error strerror(errno)
13#endif
14
15#ifdef _WIN32
16#define chdir(p) (_chdir(p))
17#define getcwd(d, s) (_getcwd(d, s))
18#define rmdir(p) (_rmdir(p))
19#define LFS_EXPORT __declspec (dllexport)
20#ifndef fileno
21#define fileno(f) (_fileno(f))
22#endif
23#else
24#define LFS_EXPORT
25#endif
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
32
33#ifdef __cplusplus
34}
35#endif
#define LFS_EXPORT
Definition lfs.h:24
LFS_EXPORT int luaopen_lfs(lua_State *L)
Definition lfs.c:1173