Skip to content

Commit

Permalink
ARROW-1003: [C++] Check flag _WIN32 instead of __WIN32
Browse files Browse the repository at this point in the history
__WIN32 is not standard for all windows compilers.

Author: bgosztonyi <b.alazsgosztonyi@gmail.com>

Closes apache#669 from bgosztonyi/patch-1 and squashes the following commits:

618ab3e [bgosztonyi] _WIN32 instead of __WIN32
  • Loading branch information
bgosztonyi authored and jeffknupp committed Jun 3, 2017
1 parent cd395e0 commit 83eb24e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/arrow/io/hdfs-internal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static std::vector<fs::path> get_potential_libhdfs_paths() {
std::string file_name;

// OS-specific file name
#ifdef __WIN32
#ifdef _WIN32
file_name = "hdfs.dll";
#elif __APPLE__
file_name = "libhdfs.dylib";
Expand Down Expand Up @@ -103,7 +103,7 @@ static std::vector<fs::path> get_potential_libhdfs3_paths() {
std::string file_name;

// OS-specific file name
#ifdef __WIN32
#ifdef _WIN32
file_name = "hdfs3.dll";
#elif __APPLE__
file_name = "libhdfs3.dylib";
Expand Down

0 comments on commit 83eb24e

Please sign in to comment.