mirror of
https://github.com/glest/glest-source.git
synced 2025-08-18 06:01:17 +02:00
added another #define for linux distors missing S_ISDIR
This commit is contained in:
@@ -17,14 +17,18 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
|
|
||||||
#define S_ISDIR(mode) ((mode) & _S_IFDIR)
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef S_ISDIR
|
||||||
|
|
||||||
|
#define S_ISDIR(mode) ((mode) & _S_IFDIR)
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
Reference in New Issue
Block a user