cygwin: apply cygwin compilation tweaks. thanks ir0nh34d.
This commit is contained in:
parent
fe1b46c174
commit
e48dfb0e6a
@ -159,6 +159,10 @@ bool FileLister::fileExists(const std::string &path)
|
|||||||
////// This code is POSIX-style systems ///////////////////////////////////////
|
////// This code is POSIX-style systems ///////////////////////////////////////
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#if defined(__CYGWIN__)
|
||||||
|
#undef __STRICT_ANSI__
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <glob.h>
|
#include <glob.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(__GNUC__) && defined(_WIN32)
|
#if defined(__GNUC__) && (defined(_WIN32) || defined(__CYGWIN__))
|
||||||
#undef __STRICT_ANSI__
|
#undef __STRICT_ANSI__
|
||||||
#endif
|
#endif
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user