Begin LSI implementation with a 64-bit detection routine

Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit is contained in:
Ikey Doherty
2016-05-26 21:38:22 +01:00
parent e41c1f1fab
commit 2eafb39de9
3 changed files with 67 additions and 0 deletions
+2
View File
@@ -14,4 +14,6 @@ bin_PROGRAMS = \
steam
steam_SOURCES = \
src/lsi.h \
src/lsi.c \
src/shim.c
+33
View File
@@ -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:
*/
+32
View File
@@ -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 <stdbool.h>
/**
* 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:
*/