1
0
mirror of https://github.com/mist64/perfect6502.git synced 2024-06-08 12:29:28 +00:00
perfect6502/cbmbasic/stat.h
Michael Steil 3e60b6dd44 cleanup: moved cbmbasic and apple1basic demos into subdirectories
* also changed "clang" to "cc"
* enabled optimizations for 64 bit (it's 10 years later!)
* updated README to reflect CPU speed in 2020 (5x faster than 2014!)
* added benchmarking instructions to README
2020-06-04 19:32:59 +02:00

15 lines
244 B
C

#ifndef STAT_H_INCLUDED
#define STAT_H_INCLUDED
#include <sys/types.h>
#include <sys/stat.h>
#ifdef _WIN32
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#define stat _stat
#else
#include <unistd.h>
#endif
#endif /* STAT_H_INCLUDED */