diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2016-08-12 12:16:14 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2016-08-12 12:16:14 -0700 |
commit | f4f23b0a7d893c871092dcb2f53f733d3909e370 (patch) | |
tree | e69dcf7793e56670cdad390889af1c1172206d8b | |
parent | d35e57b117e1d018130f8945a06954893408ba0c (diff) | |
download | xrdp-proprietary-f4f23b0a7d893c871092dcb2f53f733d3909e370.tar.gz xrdp-proprietary-f4f23b0a7d893c871092dcb2f53f733d3909e370.zip |
Include stdint.h, don't redefine MAX/MIN constants if already defined
-rw-r--r-- | common/Makefile.am | 10 | ||||
-rw-r--r-- | common/pixman-region16.c | 12 |
2 files changed, 17 insertions, 5 deletions
diff --git a/common/Makefile.am b/common/Makefile.am index fa839e33..6d7a58c6 100644 --- a/common/Makefile.am +++ b/common/Makefile.am @@ -1,11 +1,11 @@ - -EXTRA_FILES = - if XRDP_PIXMAN + PIXMAN_SOURCES = else - EXTRA_FILES += pixman-region16.c pixman-region.h + PIXMAN_SOURCES = pixman-region16.c pixman-region.h endif +EXTRA_DIST = pixman-region.c + AM_CPPFLAGS = \ -DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \ -DXRDP_SBIN_PATH=\"${sbindir}\" \ @@ -45,7 +45,7 @@ libcommon_la_SOURCES = \ xrdp_client_info.h \ xrdp_constants.h \ xrdp_rail.h \ - $(EXTRA_FILES) + $(PIXMAN_SOURCES) libcommon_la_LIBADD = \ -lcrypto \ diff --git a/common/pixman-region16.c b/common/pixman-region16.c index 637c8a35..76f0903b 100644 --- a/common/pixman-region16.c +++ b/common/pixman-region16.c @@ -26,14 +26,26 @@ /* taken from pixman 0.34 altered to compile without all of pixman */ +#if defined(HAVE_CONFIG_H) +#include "config_ac.h" +#endif #include <stdio.h> #include <stdlib.h> #include <string.h> +#if defined(HAVE_STDINT_H) +#include <stdint.h> +#endif #include "pixman-region.h" +#if !defined(UINT32_MAX) #define UINT32_MAX (4294967295U) +#endif +#if !defined(INT16_MIN) #define INT16_MIN (-32767-1) +#endif +#if !defined(INT16_MAX) #define INT16_MAX (32767) +#endif #define PIXMAN_EXPORT #define FALSE 0 |