Darwin: #ifdefs around dix-config.h include and NDEBUG/assert.h workaround.

(cherry picked from commit d2b768890f)
This commit is contained in:
Jeremy Huddleston 2007-11-29 02:19:22 -08:00
parent 3839756061
commit 8a079be0dd
31 changed files with 86 additions and 7 deletions

View File

@ -29,7 +29,9 @@
* use or other dealings in this Software without prior written authorization.
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include <X11/X.h>
#include <X11/Xproto.h>

View File

@ -27,9 +27,6 @@
#ifndef _DARWIN_H
#define _DARWIN_H
//#include "dix-config.h" // This crashes us for some reason...
#define SHAPE
#include <IOKit/IOTypes.h>
#include "inputstr.h"
#include "scrnintstr.h"

View File

@ -56,9 +56,13 @@
===========================================================================
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
// Define this to get a diagnostic output to stderr which is helpful
// in determining how the X server is interpreting the Darwin keymap.
#define DUMP_DARWIN_KEYMAP
// #define DUMP_DARWIN_KEYMAP
#include <stdio.h>
#include <stdlib.h>
@ -69,7 +73,15 @@
#include <architecture/byte_order.h> // For the NXSwap*
#include "darwin.h"
#include "darwinKeyboard.h"
#ifdef NDEBUG
#undef NDEBUG
#include <assert.h>
#define NDEBUG 1
#else
#include <assert.h>
#endif
#define AltMask Mod1Mask
#define MetaMask Mod2Mask
#define FunctionMask Mod3Mask

View File

@ -52,6 +52,10 @@ SOFTWARE.
********************************************************/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#define NEED_EVENTS
#include <X11/X.h>
#include <X11/Xproto.h>

View File

@ -27,6 +27,10 @@
promote the sale, use or other dealings in this Software without
prior written authorization. */
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include "quartzCommon.h"
#import "X11Application.h"

View File

@ -27,6 +27,10 @@
promote the sale, use or other dealings in this Software without
prior written authorization. */
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#define DEFAULT_PATH "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11/bin"
#include "quartzCommon.h"

View File

@ -25,7 +25,9 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
**************************************************************************/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include "quartzCommon.h"

View File

@ -30,10 +30,13 @@
* use or other dealings in this Software without prior written authorization.
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#import "XView.h"
@implementation XView
- (BOOL)isFlipped

View File

@ -26,7 +26,9 @@
* use or other dealings in this Software without prior written authorization.
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include "quartz/quartzCommon.h"
#include "quartz/cr/cr.h"

View File

@ -27,7 +27,9 @@
* use or other dealings in this Software without prior written authorization.
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include "quartz/quartzCommon.h"
#include "quartz/cr/cr.h"

View File

@ -27,7 +27,9 @@
* use or other dealings in this Software without prior written authorization.
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include "quartz/quartzCommon.h"
#include "quartz/cr/cr.h"

View File

@ -26,7 +26,9 @@
* use or other dealings in this Software without prior written authorization.
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include "quartz/quartzCommon.h"
#include "darwin.h"

View File

@ -28,7 +28,9 @@
* use or other dealings in this Software without prior written authorization.
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include "quartz/quartzCommon.h"
#include "quartz/quartzCursor.h"

View File

@ -33,10 +33,11 @@ dealings in this Software without prior written authorization from Digital
Equipment Corporation.
******************************************************************/
#include "pseudoramiX.h"
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include "pseudoramiX.h"
#include "extnsionst.h"
#include "dixstruct.h"
#include "window.h"

View File

@ -28,7 +28,9 @@
* use or other dealings in this Software without prior written authorization.
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include "quartzCommon.h"
#include "quartz.h"

View File

@ -36,7 +36,9 @@
* use or other dealings in this Software without prior written authorization.
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include "quartzCommon.h"
#include "quartzAudio.h"

View File

@ -32,7 +32,9 @@
* use or other dealings in this Software without prior written authorization.
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include "quartzCommon.h"

View File

@ -28,7 +28,9 @@
* use or other dealings in this Software without prior written authorization.
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include "quartzCommon.h"
#include "quartzCursor.h"

View File

@ -31,7 +31,9 @@
prior written authorization.
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include "quartzCommon.h"

View File

@ -30,7 +30,9 @@
* use or other dealings in this Software without prior written authorization.
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include "quartzPasteboard.h"

View File

@ -27,6 +27,10 @@
* use or other dealings in this Software without prior written authorization.
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include <fcntl.h>
#include <unistd.h>
#include <CoreFoundation/CoreFoundation.h>
@ -35,7 +39,14 @@
#include "quartz.h"
#include "opaque.h"
#include "micmap.h"
#ifdef NDEBUG
#undef NDEBUG
#include <assert.h>
#define NDEBUG 1
#else
#include <assert.h>
#endif
char **envpGlobal; // argcGlobal and argvGlobal
// are from dix/globals.c

View File

@ -1,7 +1,6 @@
noinst_LIBRARIES = libxpr.a
AM_CFLAGS = $(XSERVER_CFLAGS) $(DIX_CFLAGS)
AM_CPPFLAGS = \
-DHAVE_XORG_CONFIG_H \
-I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../.. \
-I$(top_srcdir)/miext \
-I$(top_srcdir)/miext/rootless \

View File

@ -35,7 +35,9 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#define NEED_REPLIES
#define NEED_EVENTS

View File

@ -34,7 +34,9 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#ifdef XFree86LOADER
#include "xf86.h"

View File

@ -27,7 +27,9 @@
promote the sale, use or other dealings in this Software without
prior written authorization. */
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include "x-hash.h"
#include "x-list.h"

View File

@ -27,7 +27,9 @@
promote the sale, use or other dealings in this Software without
prior written authorization. */
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include "x-hook.h"
#include <stdlib.h>

View File

@ -27,7 +27,9 @@
promote the sale, use or other dealings in this Software without
prior written authorization. */
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include "x-list.h"
#include <stdlib.h>

View File

@ -27,7 +27,9 @@
* use or other dealings in this Software without prior written authorization.
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include "xpr.h"
#include "quartz/applewmExt.h"

View File

@ -29,7 +29,9 @@
* use or other dealings in this Software without prior written authorization.
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include "quartz/quartzCommon.h"
#include "xpr.h"

View File

@ -27,7 +27,9 @@
* use or other dealings in this Software without prior written authorization.
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include "xpr.h"
#include "rootlessCommon.h"

View File

@ -27,7 +27,9 @@
* use or other dealings in this Software without prior written authorization.
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include "quartz/quartzCommon.h"
#include "quartz/quartz.h"