Repository: hbase Updated Branches: refs/heads/HBASE-14850 4818a2abd -> 95da699b1
HBASE-18802 [C++] Remove hbase-macros.h Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/95da699b Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/95da699b Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/95da699b Branch: refs/heads/HBASE-14850 Commit: 95da699b177f468e4d67ee4e8a3c4de802aa86a9 Parents: 4818a2a Author: Enis Soztutar <e...@apache.org> Authored: Thu Sep 14 14:07:34 2017 -0700 Committer: Enis Soztutar <e...@apache.org> Committed: Thu Sep 14 14:07:34 2017 -0700 ---------------------------------------------------------------------- hbase-native-client/core/hbase-macros.h | 56 ---------------------------- 1 file changed, 56 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/95da699b/hbase-native-client/core/hbase-macros.h ---------------------------------------------------------------------- diff --git a/hbase-native-client/core/hbase-macros.h b/hbase-native-client/core/hbase-macros.h deleted file mode 100644 index d70c247..0000000 --- a/hbase-native-client/core/hbase-macros.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#pragma once - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * The following code block define API as the tag for exported - * functions. The library should be compiled with symbols visibility - * set to hidden by default and only the exported functions should be - * tagged as HBASE_API. - * - * When building the library on Windows, compile with compiler flag - * "-D_LIBHBASE_IMPLEMENTATION_", whereas when linking application with - * this library, this compiler flag should not be used. - */ -#if defined _WIN32 || defined __CYGWIN__ -#ifdef _LIBHBASE_IMPLEMENTATION_ -#define API __declspec(dllexport) -#else -#ifdef _LIBHBASE_TEST_ -#define HBASE_API -#else -#define HBASE_API __declspec(dllimport) -#endif -#endif -#else -#if __GNUC__ >= 4 -#define HBASE_API __attribute__((visibility("default"))) -#else -#define HBASE_API -#endif -#endif - -#ifdef __cplusplus -} // extern "C" -#endif // __cplusplus