aboutsummaryrefslogtreecommitdiff
path: root/c/include
diff options
context:
space:
mode:
authorEugene Kliuchnikov <eustas@google.com>2018-04-20 14:10:55 +0200
committerGitHub <noreply@github.com>2018-04-20 14:10:55 +0200
commit6000396155a418aba75c0dab1d97cf5124aa4fb2 (patch)
tree2999142be20fab368275e97cdcc7d3e7d6b8dca8 /c/include
parent68db5c0272d46f316efab575b67dae5b9ce4378d (diff)
downloadbrotli-6000396155a418aba75c0dab1d97cf5124aa4fb2.zip
brotli-6000396155a418aba75c0dab1d97cf5124aa4fb2.tar.gz
brotli-6000396155a418aba75c0dab1d97cf5124aa4fb2.tar.bz2
Remove unprefixed macros from public headers (#662)
Diffstat (limited to 'c/include')
-rw-r--r--c/include/brotli/port.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/c/include/brotli/port.h b/c/include/brotli/port.h
index 88cdbf4..d49fa6a 100644
--- a/c/include/brotli/port.h
+++ b/c/include/brotli/port.h
@@ -14,19 +14,6 @@
#ifndef BROTLI_COMMON_PORT_H_
#define BROTLI_COMMON_PORT_H_
-/* Compatibility with non-clang compilers. */
-#ifndef __has_builtin
-#define __has_builtin(x) 0
-#endif
-
-#ifndef __has_attribute
-#define __has_attribute(x) 0
-#endif
-
-#ifndef __has_feature
-#define __has_feature(x) 0
-#endif
-
#if defined(__GNUC__) && defined(__GNUC_MINOR__)
#define BROTLI_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
#else
@@ -69,10 +56,4 @@
#define BROTLI_ENC_API
#endif
-#if BROTLI_MODERN_COMPILER || __has_attribute(deprecated)
-#define BROTLI_DEPRECATED __attribute__((deprecated))
-#else
-#define BROTLI_DEPRECATED
-#endif
-
#endif /* BROTLI_COMMON_PORT_H_ */