| 1 |
/*/msvcdir.h */ |
| 2 |
|
| 3 |
#if !defined(MSVCDIR_H) |
| 4 |
#define MSVCDIR_H |
| 5 |
#include <stdlib.h> /*_splitpath */ |
| 6 |
#include <direct.h> |
| 7 |
#include <assert.h> /*assert */ |
| 8 |
|
| 9 |
struct ftime{ |
| 10 |
unsigned ft_tsec: 5; |
| 11 |
unsigned ft_min: 6; |
| 12 |
unsigned ft_hour: 5; |
| 13 |
unsigned ft_day: 5; |
| 14 |
unsigned ft_month: 4; |
| 15 |
unsigned ft_year: 7; |
| 16 |
}; |
| 17 |
#define MAXPATH _MAX_PATH |
| 18 |
#define MAXFILE _MAX_FNAME |
| 19 |
#define MAXDIR _MAX_DIR |
| 20 |
#define MAXDRIVE _MAX_DRIVE |
| 21 |
#define MAXEXT _MAX_EXT |
| 22 |
|
| 23 |
#define fnsplit _splitpath |
| 24 |
|
| 25 |
void getftime(int handle, struct ftime *ft); |
| 26 |
|
| 27 |
#if defined(MSVC) && !defined(_WARNING_) |
| 28 |
#define _WARNING_ |
| 29 |
#pragma warning( disable : 4244 4018 4102 4761 4146 4047 4305 4245 4113) |
| 30 |
#endif |
| 31 |
|
| 32 |
#endif /* MSVCDIR_H */ |