]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
Fix rc compiler redefinition warnings (nmake)
authorWolfgang Stöggl <c72578@yahoo.de>
Fri, 25 Jan 2019 10:08:18 +0000 (11:08 +0100)
committerTobias Oetiker <tobi@oetiker.ch>
Fri, 25 Jan 2019 12:49:59 +0000 (13:49 +0100)
commite82476ab1a798168b1c39c27337918e431ab6de6
tree4b64b5a516ce8de9ae2dc8154f40a373095213ae
parentb51c4da6e34bbb1e21bd3d056c2809c4190753aa
Fix rc compiler redefinition warnings (nmake)

- Surround code in win32/rrd_config.h that causes warnings by rc with
  #ifndef RC_INVOKED and #endif. Remark: _MSC_VER is unknown to rc
- Fixes the following warnings for .rc files, e.g.:
  rc /nologo /I./src /fo./win32/rrdtool.res ./win32\rrdtool.rc
  ./win32\rrd_config.h(130) : warning RC4005: 'isinf' : redefinition
  ./win32\rrd_config.h(131) : warning RC4005: 'isnan' : redefinition
- This concerns: librrd-4.rc, rrdtool.rc, rrdupdate.rc, rrdcgi.rc,
  when using the resource compiler (rc) via nmake under Windows
win32/rrd_config.h