wdvi

network DVI viewer
Log | Files | Refs

commit e49799918d298759fc079a5a2d21f85baad25c59
parent 580f8e56a0d83b3db6bf6b4eba68c71695d09f6d
Author: Kyle Milz <krwmilz@gmail.com>
Date:   Mon, 16 Aug 2021 16:40:38 +0000

Assume we have standard C headers

Diffstat:
Mxdvi.h | 24+++++++++++-------------
1 file changed, 11 insertions(+), 13 deletions(-)

diff --git a/xdvi.h b/xdvi.h @@ -51,20 +51,18 @@ NOTE: # define FUNCPROTO (-1) #endif -#if STDC_HEADERS -# include <stddef.h> -# include <stdlib.h> +#include <stddef.h> +#include <stdlib.h> /* the following works around the wchar_t problem */ -# include <X11/X.h> -# if HAVE_X11_XOSDEFS_H -# include <X11/Xosdefs.h> -# endif -# ifdef X_NOT_STDC_ENV -# undef X_NOT_STDC_ENV -# undef X_WCHAR -# include <X11/Xlib.h> -# define X_NOT_STDC_ENV -# endif +#include <X11/X.h> +#if HAVE_X11_XOSDEFS_H +# include <X11/Xosdefs.h> +#endif +#ifdef X_NOT_STDC_ENV +# undef X_NOT_STDC_ENV +# undef X_WCHAR +# include <X11/Xlib.h> +# define X_NOT_STDC_ENV #endif #include <X11/Xlib.h> /* include Xfuncs.h, if available */