Added few more stubs so that control reaches to DestroyDevice().
[mesa.git] / src / egl / main / egldefines.h
index d468d7b76cc637b86dff97ea01e519024170848d..c925e0ca55338f73dbec613b0eff25bed0b1b296 100644 (file)
@@ -1,6 +1,6 @@
 /**************************************************************************
  *
- * Copyright 2008 Tungsten Graphics, Inc., Cedar Park, Texas.
+ * Copyright 2008 VMware, Inc.
  * All Rights Reserved.
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
 #ifndef EGLDEFINES_INCLUDED
 #define EGLDEFINES_INCLUDED
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 #define _EGL_MAX_EXTENSIONS_LEN 1000
 
-#define _EGL_VENDOR_STRING "Mesa Project"
+/* Hardcoded, conservative default for EGL_LARGEST_PBUFFER,
+ * this is used to implement EGL_LARGEST_PBUFFER.
+ */
+#define _EGL_MAX_PBUFFER_WIDTH 4096
+#define _EGL_MAX_PBUFFER_HEIGHT 4096
 
-#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
+#define _EGL_VENDOR_STRING "Mesa Project"
 
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* EGLDEFINES_INCLUDED */