mirror of
https://github.com/fltk/fltk.git
synced 2026-05-27 02:46:34 +08:00
Updated for C++.
git-svn-id: file:///fltk/svn/fltk/trunk@61 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+5
-2
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: scandir_win32.c,v 1.6 1998/10/21 14:21:11 mike Exp $"
|
// "$Id: scandir_win32.c,v 1.7 1998/11/05 21:40:45 mike Exp $"
|
||||||
//
|
//
|
||||||
// WIN32 scandir function for the Fast Light Tool Kit (FLTK).
|
// WIN32 scandir function for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -100,10 +100,13 @@ int scandir(const char *dirname, struct dirent ***namelist,
|
|||||||
return nDir;
|
return nDir;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
#endif
|
||||||
int alphasort (struct dirent **a, struct dirent **b) {
|
int alphasort (struct dirent **a, struct dirent **b) {
|
||||||
return strcmp ((*a)->d_name, (*b)->d_name);
|
return strcmp ((*a)->d_name, (*b)->d_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: scandir_win32.c,v 1.6 1998/10/21 14:21:11 mike Exp $".
|
// End of "$Id: scandir_win32.c,v 1.7 1998/11/05 21:40:45 mike Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user