equal
deleted
inserted
replaced
16 #include "fios.h" |
16 #include "fios.h" |
17 #include <sys/types.h> |
17 #include <sys/types.h> |
18 #include <sys/stat.h> |
18 #include <sys/stat.h> |
19 |
19 |
20 #ifdef WIN32 |
20 #ifdef WIN32 |
|
21 # include <tchar.h> |
21 # include <io.h> |
22 # include <io.h> |
22 #else |
23 #else |
23 # include <unistd.h> |
24 # include <unistd.h> |
24 #endif /* WIN32 */ |
25 #endif /* WIN32 */ |
25 |
26 |
169 if (period != NULL && strcasecmp(period, extension) == 0) extension = ""; |
170 if (period != NULL && strcasecmp(period, extension) == 0) extension = ""; |
170 |
171 |
171 snprintf(buf, size, "%s" PATHSEP "%s%s", _fios_path, name, extension); |
172 snprintf(buf, size, "%s" PATHSEP "%s%s", _fios_path, name, extension); |
172 } |
173 } |
173 |
174 |
174 #if defined(WIN32) || defined(WIN64) |
175 #if defined(WIN32) |
175 # define unlink _wunlink |
176 # define unlink _tunlink |
176 #endif |
177 #endif |
177 |
178 |
178 bool FiosDelete(const char *name) |
179 bool FiosDelete(const char *name) |
179 { |
180 { |
180 char filename[512]; |
181 char filename[512]; |