diff --git a/Makefile.am b/Makefile.am index b8828cc..4539633 100644 --- a/Makefile.am +++ b/Makefile.am @@ -14,4 +14,6 @@ bin_PROGRAMS = \ steam steam_SOURCES = \ + src/lsi.h \ + src/lsi.c \ src/shim.c diff --git a/src/lsi.c b/src/lsi.c new file mode 100644 index 0000000..7a1b4e7 --- /dev/null +++ b/src/lsi.c @@ -0,0 +1,33 @@ +/* + * This file is part of linux-steam-integration. + * + * Copyright (C) 2016 Ikey Doherty + * + * linux-steam-integration is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 + * of the License, or (at your option) any later version. + */ + +#include "lsi.h" + +bool lsi_system_is_64bit(void) +{ +#if UINTPTR_MAX == 0xffffffffffffffff + return true; +#endif + return false; +} + +/* + * Editor modelines - https://www.wireshark.org/tools/modelines.html + * + * Local variables: + * c-basic-offset: 8 + * tab-width: 8 + * indent-tabs-mode: nil + * End: + * + * vi: set shiftwidth=8 tabstop=8 expandtab: + * :indentSize=8:tabSize=8:noTabs=true: + */ diff --git a/src/lsi.h b/src/lsi.h new file mode 100644 index 0000000..2aa840e --- /dev/null +++ b/src/lsi.h @@ -0,0 +1,32 @@ +/* + * This file is part of linux-steam-integration. + * + * Copyright (C) 2016 Ikey Doherty + * + * linux-steam-integration is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 + * of the License, or (at your option) any later version. + */ + +#pragma once + +#include + +/** + * Determine if the host system is 64-bit. + */ +bool lsi_system_is_64bit(void); + +/* + * Editor modelines - https://www.wireshark.org/tools/modelines.html + * + * Local variables: + * c-basic-offset: 8 + * tab-width: 8 + * indent-tabs-mode: nil + * End: + * + * vi: set shiftwidth=8 tabstop=8 expandtab: + * :indentSize=8:tabSize=8:noTabs=true: + */