mirror of
https://gitlab.com/80486DX2-66/gists
synced 2025-01-26 09:11:54 +05:30
reverse-ramdisk.c: TempFile: reduce #if scope
This commit is contained in:
parent
3817607ee4
commit
e70d50cee4
@ -39,19 +39,15 @@ To-Do: Add thread-safe versions of functions (use postfix `_r`)
|
|||||||
exit(EXIT_FAILURE); \
|
exit(EXIT_FAILURE); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
int ID;
|
||||||
|
char* file_path;
|
||||||
#if IS_POSIX
|
#if IS_POSIX
|
||||||
typedef struct {
|
|
||||||
int ID;
|
|
||||||
char* file_path;
|
|
||||||
int file;
|
int file;
|
||||||
} TempFile;
|
|
||||||
#else
|
#else
|
||||||
typedef struct {
|
|
||||||
int ID;
|
|
||||||
char* file_path;
|
|
||||||
FILE* file;
|
FILE* file;
|
||||||
} TempFile;
|
|
||||||
#endif
|
#endif
|
||||||
|
} TempFile;
|
||||||
|
|
||||||
TempFile* temp_files = NULL;
|
TempFile* temp_files = NULL;
|
||||||
size_t num_temp_files = 0;
|
size_t num_temp_files = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user