SWDEV-301289 - Treewide macro rename

ATI_OS_WIN -> _WIN32
ATI_OS_LINUX -> __linux__

We should not rely on non-standard macros for platform detections.

Change-Id: If1d06e2e1187268df62a59609ea5496ab7eb709d
This commit is contained in:
Vladislav Sytchenko authored and Jason Tang committed 2021-09-26 12:13:37 -04:00
1 parent 159f7f24cd
commit c4aa6febe5
27 files changed
+92 -93

No files matched your search

+3 -3
View File
@@ -25,7 +25,7 @@
//! \file Thread.h
//!
#ifdef ATI_OS_WIN
#ifdef _WIN32
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#endif
@@ -86,7 +86,7 @@ class Lock {
//!
//! System specific synchronization primitive
#ifdef ATI_OS_WIN
#ifdef _WIN32
CRITICAL_SECTION _cs;
#else
pthread_mutex_t _lock;
@@ -131,7 +131,7 @@ class Thread {
//! Private data members and methods
//!
#ifdef ATI_OS_WIN
#ifdef _WIN32
//! store the handle
HANDLE _tid;
+2 -2
View File
@@ -21,7 +21,7 @@
#ifndef OCLLOG_H_
#define OCLLOG_H_
#ifdef ATI_OS_WIN
#ifdef _WIN32
#ifdef OCLTST_LOG_BUILD
#define DLLIMPORT __declspec(dllexport)
@@ -32,7 +32,7 @@
#else
#define DLLIMPORT
#endif // ATI_OS_WIN
#endif // _WIN32
enum oclLoggingLevel {
OCLTEST_LOG_ALWAYS,
+2 -2
View File
@@ -21,10 +21,10 @@
#ifndef _OCLMODULE_H_
#define _OCLMODULE_H_
#ifdef ATI_OS_WIN
#ifdef _WIN32
#define OCLLCONV __cdecl
#endif
#ifdef ATI_OS_LINUX
#ifdef __linux__
#define OCLLCONV
#endif