Subversion Repositories Tewi

Rev

Rev 257 | Rev 292 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 257 Rev 261
Line 1... Line 1...
1
/* $Id: dir.c 257 2024-10-04 05:34:27Z nishi $ */
1
/* $Id: dir.c 261 2024-10-04 23:19:59Z nishi $ */
2
 
2
 
3
#include "cm_dir.h"
3
#include "cm_dir.h"
4
 
4
 
5
#include "cm_string.h"
5
#include "cm_string.h"
6
 
6
 
7
#include <sys/stat.h>
7
#include <sys/stat.h>
8
#if !defined(_MSC_VER) && !defined(__WATCOMC__)
8
#if !defined(_MSC_VER) && !defined(__WATCOMC__)
9
#include <dirent.h>
9
#include <dirent.h>
10
#elif defined(__WATCOMC__)
10
#elif defined(__WATCOMC__) || defined(_MSC_VER)
11
#include <direct.h>
11
#include <direct.h>
12
#endif
12
#endif
-
 
13
#ifdef _MSC_VER
-
 
14
#include <windows.h>
-
 
15
#endif
13
#include <stdlib.h>
16
#include <stdlib.h>
14
#include <string.h>
17
#include <string.h>
15
 
18
 
16
int cm_sort(const void* _a, const void* _b) {
19
int cm_sort(const void* _a, const void* _b) {
17
	char* a = *(char**)_a;
20
	char* a = *(char**)_a;