Chance "_WIN64" checks to "_WIN32"

_WIN32 is defined on both 32-bit and 64-bit windows systems, so might as
well just use that.
This commit is contained in:
Epicalert 2021-06-13 19:02:57 +08:00
parent 325ff2ce7d
commit 05a4079418
No known key found for this signature in database
GPG key ID: CAA46F858D0979BD
3 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@ const char* argp_program_version =
"available at <git://git.epicalert.xyz/facecam2d.git> or the\n"
"GitLab mirror at <https://gitlab.com/epicalert/facecam2d.git>.";
#ifndef _WIN64
#ifndef _WIN32
const struct argp_option options[] = {
//name, key, arg, flags, doc, group
{"haar-cascade", 0x00, 0, 0, "Use Haar Cascades for faster (but less accurate) face detection.", 0},
@ -29,7 +29,7 @@ struct optData optData = {
"test",
};
#ifndef _WIN64
#ifndef _WIN32
error_t parseOptions(int key, char* arg, struct argp_state* state) {
switch (key) {
case 0x00: //--haar-cascade

View file

@ -3,7 +3,7 @@
#include <string>
#ifndef _WIN64
#ifndef _WIN32
#include <argp.h>
error_t parseOptions(int key, char* arg, struct argp_state* state);

View file

@ -9,7 +9,7 @@
#include <cstring>
int main (int argc, char** argv) {
#ifndef _WIN64
#ifndef _WIN32
argp_parse(&argp, argc, argv, 0, 0, 0);
#endif