amdgpu/addrlib: add define HAVE_TSERVER

This commit is contained in:
Xavi Zhang 2015-05-07 02:26:29 -04:00 committed by Marek Olšák
parent 7293a020bd
commit 79dcda5116
2 changed files with 6 additions and 6 deletions

View file

@ -33,8 +33,8 @@
#ifndef __ADDR_TYPES_H__
#define __ADDR_TYPES_H__
#if defined(__APPLE__) || defined(TCORE_BUILD)
// External definitions header maintained by Mac driver team (and TCORE team)
#if defined(__APPLE__) && !defined(HAVE_TSERVER)
// External definitions header maintained by Apple driver team, but not for diag team under Mac.
// Helps address compilation issues & reduces code covered by NDA
#include "addrExtDef.h"
@ -59,7 +59,7 @@ typedef int INT;
#include <stdarg.h> // va_list...etc need this header
#endif // defined (__APPLE__)
#endif // defined (__APPLE__) && !defined(HAVE_TSERVER)
/**
***************************************************************************************************
@ -455,7 +455,7 @@ typedef enum _AddrTileType
//
///////////////////////////////////////////////////////////////////////////////////////////////////
#if !defined(__APPLE__)
#if !defined(__APPLE__) || defined(HAVE_TSERVER)
#ifndef BOOL_32 // no bool type in C
/// @brief Boolean type, since none is defined in C
@ -531,7 +531,7 @@ typedef enum _AddrTileType
#define UINT_64 unsigned long long OR unsigned __int64
#endif
#endif // #if !defined(__APPLE__)
#endif // #if !defined(__APPLE__) || defined(HAVE_TSERVER)
// ADDR64X is used to print addresses in hex form on both Windows and Linux
//

View file

@ -41,7 +41,7 @@
// Moved from addrinterface.h so __KERNEL__ is not needed any more
#if ADDR_LNX_KERNEL_BUILD // || (defined(__GNUC__) && defined(__KERNEL__))
#include "lnx_common_defs.h" // ported from cmmqs
#elif !defined(__APPLE__)
#elif !defined(__APPLE__) || defined(HAVE_TSERVER)
#include <stdlib.h>
#include <string.h>
#endif