Handle PLATFORM_WINDOWS in stream_executor.
PiperOrigin-RevId: 265769809
This commit is contained in:
parent
0e7680ef8d
commit
3367f66a9a
@ -22,7 +22,7 @@ limitations under the License.
|
|||||||
#if defined(PLATFORM_GOOGLE)
|
#if defined(PLATFORM_GOOGLE)
|
||||||
#include "tensorflow/stream_executor/platform/google/dso_loader.h"
|
#include "tensorflow/stream_executor/platform/google/dso_loader.h"
|
||||||
#elif defined(PLATFORM_POSIX) || defined(PLATFORM_POSIX_ANDROID) || \
|
#elif defined(PLATFORM_POSIX) || defined(PLATFORM_POSIX_ANDROID) || \
|
||||||
defined(PLATFORM_GOOGLE_ANDROID)
|
defined(PLATFORM_GOOGLE_ANDROID) || defined(PLATFORM_WINDOWS)
|
||||||
#include "tensorflow/stream_executor/platform/default/dso_loader.h"
|
#include "tensorflow/stream_executor/platform/default/dso_loader.h"
|
||||||
#else
|
#else
|
||||||
#error Define the appropriate PLATFORM_<foo> macro for this platform
|
#error Define the appropriate PLATFORM_<foo> macro for this platform
|
||||||
|
@ -17,7 +17,8 @@ limitations under the License.
|
|||||||
#define TENSORFLOW_STREAM_EXECUTOR_PLATFORM_PLATFORM_H_
|
#define TENSORFLOW_STREAM_EXECUTOR_PLATFORM_PLATFORM_H_
|
||||||
|
|
||||||
#if !defined(PLATFORM_POSIX) && !defined(PLATFORM_GOOGLE) && \
|
#if !defined(PLATFORM_POSIX) && !defined(PLATFORM_GOOGLE) && \
|
||||||
!defined(PLATFORM_POSIX_ANDROID) && !defined(PLATFORM_GOOGLE_ANDROID)
|
!defined(PLATFORM_POSIX_ANDROID) && !defined(PLATFORM_GOOGLE_ANDROID) && \
|
||||||
|
!defined(PLATFORM_WINDOWS)
|
||||||
|
|
||||||
// Choose which platform we are on.
|
// Choose which platform we are on.
|
||||||
#if defined(ANDROID) || defined(__ANDROID__)
|
#if defined(ANDROID) || defined(__ANDROID__)
|
||||||
@ -26,6 +27,9 @@ limitations under the License.
|
|||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
#define PLATFORM_POSIX
|
#define PLATFORM_POSIX
|
||||||
|
|
||||||
|
#elif defined(_WIN32)
|
||||||
|
#define PLATFORM_WINDOWS
|
||||||
|
|
||||||
#else
|
#else
|
||||||
// If no platform specified, use:
|
// If no platform specified, use:
|
||||||
#define PLATFORM_POSIX
|
#define PLATFORM_POSIX
|
||||||
|
Loading…
Reference in New Issue
Block a user