aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2021-05-08 23:24:08 +0200
committerJan200101 <sentrycraft123@gmail.com>2021-05-08 23:24:08 +0200
commit6cc1ec3610ba98bada1fcd03a654b2925530f748 (patch)
treed772a02517cc8022100be2a89f8e4000559066ba /src/main.c
parent14e8bfdc0a83a1256f2efc92868ead7dbd26bc51 (diff)
downloadpolecat-6cc1ec3610ba98bada1fcd03a654b2925530f748.tar.gz
polecat-6cc1ec3610ba98bada1fcd03a654b2925530f748.zip
add work in progress windows support
to run lutris installers on windows soon
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 5f7426d..c188ae8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,7 +1,7 @@
#include <stdio.h>
#include <string.h>
-#include <linux/limits.h>
+#include <limits.h>
#include "main.h"
#include "wine.h"
@@ -11,14 +11,16 @@
#include "config.h"
static const struct Command main_commands[] = {
+#ifndef _WIN32
{ .name = "wine", .func = wine, .description = "manage wine versions" },
+#endif
{ .name = "dxvk", .func = dxvk, .description = "manage DXVK versions" },
{ .name = "lutris", .func = lutris, .description = "run lutris instraller"},
{ .name = "env", .func = main_env, .description = "show some information about polecat" },
};
static const struct Flag main_flags[] = {
- { .name = "help", .variant = DOUBLE, .func = main_help, .description = "show this message"},
+ { .name = "help", .variant = TWO, .func = main_help, .description = "show this message"},
{ .name = "version", .variant = BOTH, .func = main_version, .description = "prints the program version"}
};