Yes I did it again ;)

added the following 3 lines to everything in the intern dir:
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

Kent
--
mein@cs.umn.edu
This commit is contained in:
2002-11-25 09:53:07 +00:00
parent d44f2c6dcc
commit 0fbadc8eb7
237 changed files with 977 additions and 66 deletions

View File

@@ -30,11 +30,13 @@
*/
#ifndef GHOST_C_API_H
#define GHOST_C_API_H
#include "GHOST_Types.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef __cplusplus
extern "C" {

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_IEVENT_H_
#define _GHOST_IEVENT_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_Types.h"
class GHOST_IWindow;

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_IEVENT_CONSUMER_H_
#define _GHOST_IEVENT_CONSUMER_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_IEvent.h"
/**

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_ISYSTEM_H_
#define _GHOST_ISYSTEM_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_Types.h"
#include "GHOST_ITimerTask.h"
#include "GHOST_IWindow.h"

View File

@@ -40,6 +40,9 @@
#ifndef _GHOST_ITIMER_TASK_H_
#define _GHOST_ITIMER_TASK_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_Types.h"

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_IWINDOW_H_
#define _GHOST_IWINDOW_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "STR_String.h"
#include "GHOST_Rect.h"
#include "GHOST_Types.h"

View File

@@ -40,6 +40,10 @@
#ifndef _H_GHOST_Rect
#define _H_GHOST_Rect
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_Types.h"

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_TYPES_H_
#define _GHOST_TYPES_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
typedef char GHOST_TInt8;
typedef unsigned char GHOST_TUns8;
typedef short GHOST_TInt16;

View File

@@ -39,6 +39,11 @@
#include "GHOST_Buttons.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
GHOST_Buttons::GHOST_Buttons()
{

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_BUTTONS_H_
#define _GHOST_BUTTONS_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_Types.h"

View File

@@ -40,6 +40,10 @@
#include <stdlib.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "intern/GHOST_Debug.h"
#include "GHOST_C-api.h"
#include "GHOST_ISystem.h"

View File

@@ -37,6 +37,10 @@
* @date October 25, 2001
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_Debug.h"
#include "GHOST_C-api.h"
#include "GHOST_CallbackEventConsumer.h"

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_CALLBACK_EVENT_CONSUMER_H_
#define _GHOST_CALLBACK_EVENT_CONSUMER_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_IEventConsumer.h"
#include "GHOST_C-api.h"

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_DEBUG_H_
#define _GHOST_DEBUG_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#ifdef _DEBUG
#pragma warning (disable:4786) // suppress stl-MSVC debug info warning

View File

@@ -37,8 +37,11 @@
* @date September 21, 2001
*/
#include "GHOST_DisplayManager.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_DisplayManager.h"
#include "GHOST_Debug.h"

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_DISPLAY_MANAGER_H_
#define _GHOST_DISPLAY_MANAGER_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_Types.h"
#ifdef WIN32

View File

@@ -37,8 +37,11 @@
* @date September 21, 2001
*/
#include "GHOST_DisplayManagerCarbon.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_DisplayManagerCarbon.h"
#include "GHOST_Debug.h"
// We do not support multiple monitors at the moment

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_DISPLAY_MANAGER_CARBON_H_
#define _GHOST_DISPLAY_MANAGER_CARBON_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifndef __APPLE__
#error Apple only!
#endif // __APPLE__

View File

@@ -37,8 +37,11 @@
* @date September 21, 2001
*/
#include "GHOST_DisplayManagerWin32.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_DisplayManagerWin32.h"
#include "GHOST_Debug.h"
// We do not support multiple monitors at the moment

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_DISPLAY_MANAGER_WIN32_H_
#define _GHOST_DISPLAY_MANAGER_WIN32_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifndef WIN32
#error WIN32 only!
#endif // WIN32

View File

@@ -29,8 +29,11 @@
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
#include "GHOST_DisplayManagerX11.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_DisplayManagerX11.h"
#include "GHOST_SystemX11.h"

View File

@@ -40,6 +40,9 @@
#ifndef _GHOST_DISPLAY_MANAGER_X11_H_
#define _GHOST_DISPLAY_MANAGER_X11_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_DisplayManager.h"

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_EVENT_H_
#define _GHOST_EVENT_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_IEvent.h"

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_EVENT_BUTTON_H_
#define _GHOST_EVENT_BUTTON_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_Event.h"
/**

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_EVENT_CURSOR_H_
#define _GHOST_EVENT_CURSOR_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_Event.h"
/**

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_EVENT_KEY_H_
#define _GHOST_EVENT_KEY_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_Event.h"
/**

View File

@@ -38,11 +38,13 @@
*/
#include "GHOST_EventManager.h"
#include <algorithm>
#include "GHOST_Debug.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
GHOST_EventManager::GHOST_EventManager()
{

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_EVENT_MANAGER_H_
#define _GHOST_EVENT_MANAGER_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#pragma warning (disable:4786) // suppress stl-MSVC debug info warning
#endif // WIN32

View File

@@ -38,12 +38,15 @@
*/
#include "GHOST_EventPrinter.h"
#include <iostream>
#include "GHOST_EventKey.h"
#include "GHOST_Debug.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
bool GHOST_EventPrinter::processEvent(GHOST_IEvent* event)
{
bool handled = true;

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_EVENT_PRINTER_H_
#define _GHOST_EVENT_PRINTER_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_IEventConsumer.h"
#include "STR_String.h"

View File

@@ -37,6 +37,10 @@
* @date May 7, 2001
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_ISystem.h"
#ifdef WIN32

View File

@@ -37,6 +37,10 @@
* @date May 31, 2001
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_ModifierKeys.h"

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_MODIFIER_KEYS_H_
#define _GHOST_MODIFIER_KEYS_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_Types.h"
struct GHOST_ModifierKeys

View File

@@ -29,6 +29,10 @@
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_Rect.h"

View File

@@ -37,6 +37,10 @@
* @date May 7, 2001
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_System.h"
#include <time.h>

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_SYSTEM_H_
#define _GHOST_SYSTEM_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_ISystem.h"
#include "GHOST_Debug.h"

View File

@@ -37,6 +37,10 @@
* @date May 7, 2001
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_SystemCarbon.h"
#include "GHOST_DisplayManagerCarbon.h"

View File

@@ -46,8 +46,11 @@
#include <Carbon/Carbon.h>
#include "GHOST_System.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_System.h"
class GHOST_EventCursor;
class GHOST_EventKey;

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_SYSTEM_CARBON_H_
#define _GHOST_SYSTEM_CARBON_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifndef __APPLE__
#error Apple OSX only!
#endif // __APPLE__

View File

@@ -37,6 +37,10 @@
* @date May 7, 2001
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_SystemWin32.h"

View File

@@ -40,14 +40,18 @@
#ifndef _GHOST_SYSTEM_WIN32_H_
#define _GHOST_SYSTEM_WIN32_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifndef WIN32
#error WIN32 only!
#endif // WIN32
#include "GHOST_System.h"
#include <windows.h>
#include "GHOST_System.h"
#if defined(__CYGWIN32__)
# define __int64 long long
#endif

View File

@@ -60,6 +60,9 @@
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_SystemX11.h"
#include "GHOST_WindowX11.h"

View File

@@ -40,12 +40,16 @@
#ifndef _GHOST_SYSTEM_X11_H_
#define _GHOST_SYSTEM_X11_H_
#include "GHOST_System.h"
#include "../GHOST_Types.h"
#include <X11/Xlib.h>
#include <GL/glx.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_System.h"
#include "../GHOST_Types.h"
class GHOST_WindowX11;
/**

View File

@@ -37,6 +37,10 @@
* @date May 31, 2001
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_TimerManager.h"
#include <algorithm>

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_TIMER_MANAGER_H_
#define _GHOST_TIMER_MANAGER_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#pragma warning (disable:4786) // suppress stl-MSVC debug info warning
#endif // WIN32

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_TIMER_TASK_H_
#define _GHOST_TIMER_TASK_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_ITimerTask.h"

View File

@@ -37,6 +37,10 @@
* @date May 10, 2001
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_Window.h"

View File

@@ -40,6 +40,9 @@
#ifndef _GHOST_WINDOW_H_
#define _GHOST_WINDOW_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_IWindow.h"

View File

@@ -37,6 +37,10 @@
* @date May 10, 2001
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_WindowCarbon.h"
#include "GHOST_Debug.h"

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_WINDOW_CARBON_H_
#define _GHOST_WINDOW_CARBON_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifndef __APPLE__
#error Apple OSX only!
#endif // __APPLE__

View File

@@ -37,10 +37,12 @@
* @date May 11, 2001
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_WindowManager.h"
#include <algorithm>
#include "GHOST_Debug.h"
#include "GHOST_Window.h"

View File

@@ -40,6 +40,9 @@
#ifndef _GHOST_WINDOW_MANAGER_H_
#define _GHOST_WINDOW_MANAGER_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#pragma warning (disable:4786) // suppress stl-MSVC debug info warning

View File

@@ -37,10 +37,12 @@
* @date May 10, 2001
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <string.h>
#include "GHOST_WindowWin32.h"
#include <GL/gl.h>
LPCSTR GHOST_WindowWin32::s_windowClassName = "GHOST_WindowClass";

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_WINDOW_WIN32_H_
#define _GHOST_WINDOW_WIN32_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifndef WIN32
#error WIN32 only!
#endif // WIN32

View File

@@ -29,8 +29,11 @@
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
#include "GHOST_WindowX11.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_WindowX11.h"
#include "GHOST_SystemX11.h"
#include "STR_String.h"
#include "GHOST_Debug.h"

View File

@@ -40,6 +40,10 @@
#ifndef _GHOST_WINDOWX11_H_
#define _GHOST_WINDOWX11_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_Window.h"
#include <X11/Xlib.h>
#include <GL/glx.h>

View File

@@ -46,6 +46,10 @@
#include <string.h>
#include <math.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GHOST_C-api.h"
#if defined(WIN32) || defined(__APPLE__)

View File

@@ -44,6 +44,10 @@
#include <iostream>
#include <math.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#if defined(WIN32) || defined(__APPLE__)
#ifdef WIN32
#include <windows.h>

View File

@@ -31,6 +31,9 @@
#include "Basic.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
int min_i(int a, int b) {
return (a<b)?a:b;

View File

@@ -29,6 +29,11 @@
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
int min_i (int a, int b);
int max_i (int a, int b);

View File

@@ -33,6 +33,10 @@
#include <stdio.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "MEM_guardedalloc.h"
#include "GHOST_C-api.h"

View File

@@ -29,6 +29,10 @@
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
char *eventtype_to_string(GHOST_TEventType type);
void event_to_buf(GHOST_EventHandle evt, char buf[128]);

View File

@@ -29,6 +29,10 @@
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#if defined(WIN32) || defined(__APPLE__)
#ifdef WIN32

View File

@@ -41,6 +41,10 @@
#include "GL.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "MEM_guardedalloc.h"
#include "GHOST_C-api.h"

View File

@@ -33,6 +33,10 @@
#include <math.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "MEM_guardedalloc.h"
#include "Basic.h"

View File

@@ -29,6 +29,10 @@
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
typedef struct _ScrollBar ScrollBar;

View File

@@ -35,6 +35,10 @@
#include <stdarg.h>
#include <stdio.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "MEM_guardedalloc.h"
#include "Util.h"

View File

@@ -29,6 +29,10 @@
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
void* memdbl (void *mem, int *size_pr, int item_size);
char* string_dup (char *str);

View File

@@ -31,6 +31,9 @@
#include <stdlib.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "MEM_guardedalloc.h"

View File

@@ -29,6 +29,10 @@
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
typedef void (*WindowDataHandler)(void *priv, GHOST_EventHandle evt);
typedef struct _WindowData WindowData;