aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/macros.h
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-01-21 00:19:15 +0100
committerJustin M. Keyes <justinkz@gmail.com>2019-01-21 00:32:34 +0100
commit226352afcbbc5af703f168c1290e07add26b44fe (patch)
treefd5d38d80685f4ac5db9f48df35965767d841b38 /src/nvim/macros.h
parentc6a039d087ca2b333d1d3a2604d675e0010f7063 (diff)
downloadrneovim-226352afcbbc5af703f168c1290e07add26b44fe.tar.gz
rneovim-226352afcbbc5af703f168c1290e07add26b44fe.tar.bz2
rneovim-226352afcbbc5af703f168c1290e07add26b44fe.zip
build: Fix -Wconversion warnings for fpclassify et al
closes #8274 The parent commit tries a different approach, but that fails on Apple Clang version: Apple LLVM version 10.0.0 (clang-1000.11.45.5) Target: x86_64-apple-darwin17.7.0 which somehow compiles the check_c_source_compiles() check, but then complains during later compilation that __fpclassify is not defined (regardless of "#include <math.h>").
Diffstat (limited to 'src/nvim/macros.h')
-rw-r--r--src/nvim/macros.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/nvim/macros.h b/src/nvim/macros.h
index 1d47520d8a..d447bff765 100644
--- a/src/nvim/macros.h
+++ b/src/nvim/macros.h
@@ -1,10 +1,6 @@
#ifndef NVIM_MACROS_H
#define NVIM_MACROS_H
-#include <math.h>
-
-#include "auto/config.h"
-
// EXTERN is only defined in main.c. That's where global variables are
// actually defined and initialized.
#ifndef EXTERN
@@ -23,23 +19,6 @@
# define MAX(X, Y) ((X) > (Y) ? (X) : (Y))
#endif
-#if defined(__clang__) && __clang__ == 1 && __clang_major__ >= 6 \
- && defined(HAVE___FPCLASSIFY)
-// Workaround glibc + Clang 6+ bug. #8274
-// https://bugzilla.redhat.com/show_bug.cgi?id=1472437
-# define xfpclassify __fpclassify
-# define xisnan __isnan
-# define xisinf __isinf
-#elif defined(__MINGW32__)
-// Workaround mingw warning. #7863
-# define xfpclassify __fpclassify
-# define xisnan _isnan
-#else
-# define xfpclassify fpclassify
-# define xisnan isnan
-# define xisinf isinf
-#endif
-
/// String with length
///
/// For use in functions which accept (char *s, size_t len) pair in arguments.