Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@davidr
Copy link

@davidr davidr commented Jan 20, 2016

I'm sure I'm doing something wrong, but by default on Centos 7.2 (gcc 4.8.5), the addition of the DBL_MAX CPP macro in patch 1143 appears not to come with a corresponding import of float.h, leading to the following:

gcc -c -I. -Iproto -DHAVE_CONFIG_H     -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       -o objects/ex_cmds.o ex_cmds.c
ex_cmds.c: In function ‘ex_sort’:
ex_cmds.c:560:48: error: ‘DBL_MAX’ undeclared (first use in this function)
       nrs[lnum - eap->line1].st_u.value_flt = -DBL_MAX;
                                                ^
ex_cmds.c:560:48: note: each undeclared identifier is reported only once for each function it appears in
make: *** [objects/ex_cmds.o] Error 1

The addition of the float.h include if FEAT_FLOAT is enabled appears to fix the problem.

@chrisbra chrisbra mentioned this pull request Jan 20, 2016
@brammool brammool closed this in 17576a1 Jan 20, 2016
watiko added a commit to watiko/neovim that referenced this pull request Feb 20, 2016
Problem:    Can't build on several systems.
Solution:   Include float.h. (Christian Robinson, closes vim/vim#570 vim/vim#571)

vim/vim@17576a1
watiko added a commit to watiko/neovim that referenced this pull request Feb 22, 2016
Problem:    Can't build on several systems.
Solution:   Include float.h. (Christian Robinson, closes vim/vim#570 vim/vim#571)

vim/vim@17576a1
watiko added a commit to watiko/neovim that referenced this pull request Feb 22, 2016
Problem:    Can't build on several systems.
Solution:   Include float.h. (Christian Robinson, closes vim/vim#570 vim/vim#571)

vim/vim@17576a1
watiko added a commit to watiko/neovim that referenced this pull request Mar 2, 2016
Problem:    Can't build on several systems.
Solution:   Include float.h. (Christian Robinson, closes vim/vim#570 vim/vim#571)

vim/vim@17576a1
guns added a commit to guns/vim that referenced this pull request Nov 22, 2017
* origin/master: (214 commits)
  patch 7.4.1153 Problem:    Autocommands triggered by quickfix cannot always get the current             title value. Solution:   Call qf_fill_buffer() later. (Christian Brabandt)
  patch 7.4.1152 Problem:    Langmap test fails with normal build. Solution:   Check for +langmap feature.
  Update runtime files
  patch 7.4.1151 Problem:    Missing change to eval.c Solution:   Also change feedkeys().
  patch 7.4.1150 Problem:    'langmap' applies to the first character typed in Select mode.             (David Watson) Solution:   Check for SELECTMODE. (Christian Brabandt, closes vim#572)             Add the 'x' flag to feedkeys().
  patch 7.4.1149 Problem:    Using the local value of 'errorformat' causes more problems than             it solves. Solution:   Revert 7.4.1013.
  patch 7.4.1148 Problem:    Default for MingW and Cygwin is still "normal". Solution:   Use "huge" as default. (Ken Takata)
  patch 7.4.1147 Problem:    Conflict for "chartab". (Kazunobu Kuriyama) Solution:   Rename the global one to something less obvious.  Move it into             src/chartab.c.
  patch 7.4.1146 Problem:    Can't build with Python 3 interface using MingW. Solution:   Update the Makefile. (Yasuhiro Matsumoto, Ken Takata)
  patch 7.4.1145 Problem:    Default features are conservative. Solution:   Make the default feature set for most of todays systems "huge".
  patch 7.4.1144 Problem:    Can't build on several systems. Solution:   Include float.h. (Christian Robinson, closes vim#570 vim#571)
  patch 7.4.1143 Problem:    Can't sort on floating point numbers. Solution:   Add the "f" flag to ":sort".  (Alex Jakushev)  Also add the "f"             flag to sort().
  patch 7.4.1142 Problem:    Cannot define keyword characters for a syntax file. Solution:   Add the ":syn iskeyword" command. (Christian Brabandt)
  patch 7.4.1141 Problem:    Using searchpair() with a skip expression that uses syntax             highlighting sometimes doesn't work. (David Fishburn) Solution:   Reset next_match_idx. (Christian Brabandt)
  patch 7.4.1140 Problem:    Recognizing <sid> does not work when the language is Turkish.             (Christian Brabandt) Solution:   Use MB_STNICMP() instead of STNICMP().
  patch 7.4.1139 Problem:    MS-Windows: getftype() returns "file for symlink to directory. Solution:   Make it return "dir". (Ken Takata)
  patch 7.4.1138 Problem:    When running gvim in the foreground some icons are missing.             (Taylor Venable) Solution:   Move the call to gui_gtk_register_resource(). (Kazunobu Kuriyama)
  patch 7.4.1137 Problem:    Illegal memory access when using :copen and :cclose. Solution:   Avoid that curbuf is invalid. (suggestion by Justin M. Keyes)             Add a test.
  patch 7.4.1136 Problem:    Wrong argument to assert_exception() causes a crash. (reported by             Coverity) Solution:   Check for NULL pointer.  Add a test.
  patch 7.4.1135 Problem:    One more arglist test fails on MS-Windows. Solution:   Don't edit "Y" after editing "y".
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant