Prefer _WIN to _POSIX for defines.

Also miscellaneous fixes here and there.
This commit is contained in:
Rosen Penev
2017-02-23 15:55:06 -08:00
parent de186ceda5
commit 4ceb7a1afa
17 changed files with 82 additions and 101 deletions
+7 -10
View File
@@ -10,19 +10,16 @@
#include <unistd.h>
#include <limits.h>
#if defined (_POSIX)
#include <sys/types.h>
#include <pwd.h>
#endif
#if defined (__APPLE__)
#include <mach-o/dyld.h>
#endif // __APPLE__
#if defined (_WIN)
#include <windows.h>
#include <direct.h>
#endif
#else
#include <sys/types.h>
#include <pwd.h>
#if defined (__APPLE__)
#include <mach-o/dyld.h>
#endif // __APPLE__
#endif // _WIN
#define DOT_HASHCAT ".hashcat"
#define SESSIONS_FOLDER "sessions"