[PSDK][XDK]

- Automatically define __ROS_LONG64__ on LP64 systems. This makes no difference for ROS but makes things easier for downstream users of our headers.
 Patch by Cat Zimmermann.

svn path=/trunk/; revision=73383
This commit is contained in:
Thomas Faber 2016-11-26 18:33:08 +00:00
parent fb4c861add
commit 89c3520c86
5 changed files with 5 additions and 14 deletions

View File

@ -6,13 +6,11 @@
#include <msvctarget.h>
#endif
#ifndef _M_AMD64
#if defined(__LP64__) || (!defined(_M_AMD64) && defined(__WINESRC__))
#if !defined(__ROS_LONG64__)
#ifdef __WINESRC__
#define __ROS_LONG64__
#endif
#endif
#endif
#ifdef __GNUC__
#ifndef __int64

View File

@ -14,13 +14,11 @@
#pragma warning(disable:4255)
#endif
#ifndef _M_AMD64
#if defined(__LP64__) || (!defined(_M_AMD64) && defined(__WINESRC__))
#if !defined(__ROS_LONG64__)
#ifdef __WINESRC__
#define __ROS_LONG64__
#endif
#endif
#endif
#ifndef NO_STRICT
#ifndef STRICT

View File

@ -15,13 +15,11 @@
#include <windows.h>
#endif
#ifndef _M_AMD64
#if defined(__LP64__) || (!defined(_M_AMD64) && defined(__WINESRC__))
#if !defined(__ROS_LONG64__)
#ifdef __WINESRC__
#define __ROS_LONG64__
#endif
#endif
#endif
#define _GNU_H_WINDOWS32_SOCKETS

View File

@ -39,13 +39,11 @@
#endif
#endif
#ifndef _M_AMD64
#if defined(__LP64__) || (!defined(_M_AMD64) && defined(__WINESRC__))
#if !defined(__ROS_LONG64__)
#ifdef __WINESRC__
#define __ROS_LONG64__
#endif
#endif
#endif
#ifdef __cplusplus
extern "C" {

View File

@ -28,9 +28,8 @@
#error Compiler too old!
#endif
/* HACK for wine code */
#if defined(__LP64__) || (!defined(_M_AMD64) && defined(__WINESRC__))
#if !defined(__ROS_LONG64__)
#ifdef __WINESRC__
#define __ROS_LONG64__
#endif
#endif