add support of old compilers, which does not define __SIZEOF_POINTER__
This commit is contained in:
parent
ecb3fb5af2
commit
b3a0fd13a3
8 changed files with 20 additions and 0 deletions
|
@ -57,6 +57,12 @@ extern "C" {
|
|||
#define CONFIG_MULTIBOOT
|
||||
//#define CONFIG_ROCKCREEK
|
||||
|
||||
#ifdef CONFIG_ROCKCREEK
|
||||
#ifndef __SIZEOF_POINTER__
|
||||
#define __SIZEOF_POINTER__ 4
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// RCCE specific flags
|
||||
#define SCC
|
||||
#define COPPERRIDGE
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <metalsvm/config.h>
|
||||
|
||||
/*
|
||||
* The code has been taken from FreeBSD (sys/libkern/divdi3.c) and is therefore
|
||||
* BSD-licensed. Unnecessary functions have been removed and all typedefs required
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <metalsvm/config.h>
|
||||
|
||||
#if __SIZEOF_POINTER__ == 4
|
||||
|
||||
/*
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <metalsvm/config.h>
|
||||
|
||||
#if __SIZEOF_POINTER__ == 4
|
||||
|
||||
/*
|
||||
|
|
|
@ -37,6 +37,8 @@
|
|||
* have been added in quad.h.
|
||||
*/
|
||||
|
||||
#include <metalsvm/config.h>
|
||||
|
||||
#if __SIZEOF_POINTER__ == 4
|
||||
|
||||
/*
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <metalsvm/config.h>
|
||||
|
||||
#if __SIZEOF_POINTER__ == 4
|
||||
|
||||
/*
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <metalsvm/config.h>
|
||||
|
||||
#if __SIZEOF_POINTER__ == 4
|
||||
|
||||
/*
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <metalsvm/config.h>
|
||||
|
||||
#if __SIZEOF_POINTER__ == 4
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue