]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
Use _WIN32 instead of WIN32 preprocessor macro
authorWolfgang Stöggl <c72578@yahoo.de>
Sat, 19 Jan 2019 22:41:02 +0000 (23:41 +0100)
committerTobias Oetiker <tobi@oetiker.ch>
Sun, 20 Jan 2019 15:19:06 +0000 (16:19 +0100)
commit8be9cfd2ebd9bfce5d9fbfee168e82750ade45dc
tree838ebe7d1918acf07681439dc6167dcd4ead71ee
parenta9671a77476b0dac171cf5ba1f9882fd66a4e038
Use _WIN32 instead of WIN32 preprocessor macro

- _WIN32 is the recommended preprocessor macro
- Substitute occurrences of WIN32 with _WIN32 using:
git grep -lw -e '#ifdef WIN32' -e '#ifndef WIN32' -e 'defined(WIN32)' \
-- '*.c' '*.h' '*.xs' | xargs \
sed -i -e 's/#ifdef WIN32/#ifdef _WIN32/g' \
-e 's/#ifndef WIN32/#ifndef _WIN32/g' \
-e 's/defined(WIN32)/defined(_WIN32)/g'
17 files changed:
bindings/perl-shared/RRDs.xs
src/mutex.c
src/mutex.h
src/plbasename.c
src/plbasename.h
src/rrd.h
src/rrd_client.c
src/rrd_create.c
src/rrd_daemon.c
src/rrd_dump.c
src/rrd_format.c
src/rrd_graph.c
src/rrd_modify.c
src/rrd_open.c
src/rrd_restore.c
src/rrd_tool.c
src/rrd_utils.c