| 322 |
|
|
| 323 |
/* I (Philip Hazel) have no means of testing this code. It was contributed by |
/* I (Philip Hazel) have no means of testing this code. It was contributed by |
| 324 |
Lionel Fourquaux. David Burgess added a patch to define INVALID_FILE_ATTRIBUTES |
Lionel Fourquaux. David Burgess added a patch to define INVALID_FILE_ATTRIBUTES |
| 325 |
when it did not exist. */ |
when it did not exist. David Byron added a patch that moved the #include of |
| 326 |
|
<windows.h> to before the INVALID_FILE_ATTRIBUTES definition rather than after. |
| 327 |
|
*/ |
| 328 |
|
|
| 329 |
#elif HAVE_WINDOWS_H |
#elif HAVE_WINDOWS_H |
| 330 |
|
|
| 334 |
#ifndef WIN32_LEAN_AND_MEAN |
#ifndef WIN32_LEAN_AND_MEAN |
| 335 |
# define WIN32_LEAN_AND_MEAN |
# define WIN32_LEAN_AND_MEAN |
| 336 |
#endif |
#endif |
| 337 |
|
|
| 338 |
|
#include <windows.h> |
| 339 |
|
|
| 340 |
#ifndef INVALID_FILE_ATTRIBUTES |
#ifndef INVALID_FILE_ATTRIBUTES |
| 341 |
#define INVALID_FILE_ATTRIBUTES 0xFFFFFFFF |
#define INVALID_FILE_ATTRIBUTES 0xFFFFFFFF |
| 342 |
#endif |
#endif |
| 343 |
|
|
|
#include <windows.h> |
|
|
|
|
| 344 |
typedef struct directory_type |
typedef struct directory_type |
| 345 |
{ |
{ |
| 346 |
HANDLE handle; |
HANDLE handle; |
| 425 |
|
|
| 426 |
int isregfile(char *filename) |
int isregfile(char *filename) |
| 427 |
{ |
{ |
| 428 |
return !isdirectory(filename) |
return !isdirectory(filename); |
| 429 |
} |
} |
| 430 |
|
|
| 431 |
|
|
| 436 |
static BOOL |
static BOOL |
| 437 |
is_stdout_tty(void) |
is_stdout_tty(void) |
| 438 |
{ |
{ |
| 439 |
FALSE; |
return FALSE; |
| 440 |
} |
} |
| 441 |
|
|
| 442 |
|
|