HDFS-16602. Use "defined" directive along with #if (#4371)

* The #if directive expects a
  boolean expression. This PR
  uses the more appropriate
  "defined" directive.
This commit is contained in:
Gautham B A 2022-06-03 22:05:20 +05:30 committed by GitHub
parent 1cc2416f68
commit a406f49bc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -19,10 +19,10 @@
#ifndef NATIVE_LIBHDFSPP_LIB_CROSS_PLATFORM_TYPES #ifndef NATIVE_LIBHDFSPP_LIB_CROSS_PLATFORM_TYPES
#define NATIVE_LIBHDFSPP_LIB_CROSS_PLATFORM_TYPES #define NATIVE_LIBHDFSPP_LIB_CROSS_PLATFORM_TYPES
#if _WIN64 #if defined(_WIN64)
// Windows 64-bit. // Windows 64-bit.
typedef long int ssize_t; typedef long int ssize_t;
#elif _WIN32 #elif defined(_WIN32)
// Windows 32-bit. // Windows 32-bit.
typedef int ssize_t; typedef int ssize_t;
#else #else