Skip to content

Commit 4f0fa83

Browse files
committed
issue doxygen#11416 CMake: Error in doc_internal/CMakeLists.txt:22 Problem configuring file
Based on the comment doxygen#11416 (comment) Made definitions of `M_PI` and `strcasecmp` consistent between `gd.h` and `mscgen_config.h`
1 parent 9d722c2 commit 4f0fa83

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

deps/libmscgen/mscgen_config.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,22 @@
22
#define MSCGEN_CONFIG_H
33

44
#if defined(_WIN32) && !defined(__CYGWIN__)
5-
#define M_PI 3.14159265358979323846264338327950288
6-
#define strcasecmp _stricmp
75
#define strdup _strdup
86
#define fileno _fileno
97
#define YY_NO_UNISTD_H 1
108
#else
119
#define HAVE_UNISTD_H 1
1210
#endif
1311

12+
#ifndef M_PI
13+
# define M_PI 3.14159265358979323846
14+
#endif
15+
#ifdef _MSC_VER
16+
# ifndef strcasecmp
17+
# define strcasecmp _stricmp
18+
# endif
19+
#endif
20+
1421
/* Define to 1 if you have the <limits.h> header file. */
1522
#define HAVE_LIMITS_H 1
1623

0 commit comments

Comments
 (0)