From f716939956e0da16d20b18ea63b5a49b4038da15 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 13 Sep 2014 05:15:05 -0400 Subject: Add vld_ prefix for vldoor_e enum values. It was pointed out to me recently that vldoor_e has enum values named 'open' and 'close'. These can potentially conflict with POSIX standard functions that have the same names, if the right header files are included. This doesn't currently cause any problems. However, to avoid any possibility of a conflict occurring if a different compiler is used, add a vld_ prefix to all the enum values, to namespace them. --- src/heretic/p_spec.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/heretic/p_spec.h') diff --git a/src/heretic/p_spec.h b/src/heretic/p_spec.h index 2de14b18..b26244af 100644 --- a/src/heretic/p_spec.h +++ b/src/heretic/p_spec.h @@ -253,11 +253,11 @@ void P_ActivateInStasis(int tag); */ typedef enum { - normal, - close30ThenOpen, - close, - open, - raiseIn5Mins + vld_normal, + vld_close30ThenOpen, + vld_close, + vld_open, + vld_raiseIn5Mins } vldoor_e; typedef struct -- cgit v1.2.3