From a406f49bc0e10ef65795a8f3af4ac84c73322906 Mon Sep 17 00:00:00 2001 From: Gautham B A Date: Fri, 3 Jun 2022 22:05:20 +0530 Subject: [PATCH] HDFS-16602. Use "defined" directive along with #if (#4371) * The #if directive expects a boolean expression. This PR uses the more appropriate "defined" directive. --- .../src/main/native/libhdfspp/lib/x-platform/types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/x-platform/types.h b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/x-platform/types.h index 6df5b96f39..0719fe90da 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/x-platform/types.h +++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/x-platform/types.h @@ -19,10 +19,10 @@ #ifndef NATIVE_LIBHDFSPP_LIB_CROSS_PLATFORM_TYPES #define NATIVE_LIBHDFSPP_LIB_CROSS_PLATFORM_TYPES -#if _WIN64 +#if defined(_WIN64) // Windows 64-bit. typedef long int ssize_t; -#elif _WIN32 +#elif defined(_WIN32) // Windows 32-bit. typedef int ssize_t; #else