diff --git a/src/doomtype.h b/src/doomtype.h
index 2db7e22b3dca975334dda98b64ee8ebf0059af72..62814866d814dc0df2ebc95329dabb422097d67f 100644
--- a/src/doomtype.h
+++ b/src/doomtype.h
@@ -92,7 +92,9 @@ typedef long ssize_t;
 #endif
 	#define strncasecmp             strnicmp
 	#define strcasecmp              stricmp
+#ifndef __cplusplus
 	#define inline                  __inline
+#endif
 #elif defined (__WATCOMC__)
 	#include <dos.h>
 	#include <sys\types.h>