mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-03 11:30:22 +00:00
Cleanup types and include's to ease GCC compilation. (PR #881)
. Do not include alarm.h as it is not needed. The code in alarm.h is not complete: all the extern functions are missing and different linkers might complain about this. . Do not redefine some windows.h types in VICE/types.h as it becomes harder to keep them consistent. Biggest problem is DWORD_IS_LONG as the best way to define it in linux 64 bit is as an int. Prefer to use StdAfx.h.
This commit is contained in:
parent
5d90b64829
commit
93346c215f
@ -30,34 +30,8 @@
|
||||
#ifndef _TYPES_H
|
||||
#define _TYPES_H
|
||||
|
||||
#ifndef BYTE
|
||||
#define BYTE unsigned char
|
||||
#endif
|
||||
|
||||
#ifndef WORD
|
||||
#define WORD unsigned short
|
||||
#endif
|
||||
|
||||
#ifndef DWORD
|
||||
//#ifdef DWORD_IS_LONG
|
||||
#define DWORD unsigned long
|
||||
//#else
|
||||
//#define DWORD unsigned int
|
||||
//#endif
|
||||
#endif
|
||||
|
||||
/* RGJ added for AppleWin */
|
||||
#ifndef ULONG
|
||||
typedef unsigned long ULONG;
|
||||
#endif
|
||||
/* TC added for AppleWin */
|
||||
#ifndef LPVOID
|
||||
typedef void *LPVOID;
|
||||
#endif
|
||||
|
||||
typedef signed char SIGNED_CHAR;
|
||||
typedef signed short SWORD;
|
||||
typedef signed int SDWORD;
|
||||
// do not redefine windows.h types here to avoid inconsistencies
|
||||
// include StdAfx.h before this file
|
||||
|
||||
typedef DWORD CLOCK;
|
||||
/* Maximum value of a CLOCK. */
|
||||
|
@ -21,10 +21,10 @@ protected:
|
||||
virtual void DlgCANCEL(HWND window);
|
||||
|
||||
private:
|
||||
BOOL CPageConfigTfe::get_tfename(int number, char **ppname, char **ppdescription);
|
||||
int CPageConfigTfe::gray_ungray_items(HWND hwnd);
|
||||
void CPageConfigTfe::init_tfe_dialog(HWND hwnd);
|
||||
void CPageConfigTfe::save_tfe_dialog(HWND hwnd);
|
||||
BOOL get_tfename(int number, char **ppname, char **ppdescription);
|
||||
int gray_ungray_items(HWND hwnd);
|
||||
void init_tfe_dialog(HWND hwnd);
|
||||
void save_tfe_dialog(HWND hwnd);
|
||||
|
||||
static CPageConfigTfe* ms_this;
|
||||
static uilib_localize_dialog_param ms_dialog[];
|
||||
|
@ -29,9 +29,6 @@
|
||||
#ifndef _UILIB_H
|
||||
#define _UILIB_H
|
||||
|
||||
#include <windows.h>
|
||||
#include <tchar.h>
|
||||
|
||||
typedef struct {
|
||||
unsigned int idc;
|
||||
int element_type;
|
||||
|
@ -24,6 +24,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "daa.h"
|
||||
#include "../CommonVICE/types.h" // [AppleWin-TC]
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "../CommonVICE/6510core.h" // [AppleWin-TC]
|
||||
#include "../CommonVICE/alarm.h"
|
||||
//#include "../CommonVICE/alarm.h" // [AppleWin-TC]
|
||||
#include "daa.h"
|
||||
//#include "debug.h" // [AppleWin-TC]
|
||||
#include "../CommonVICE/interrupt.h"
|
||||
|
@ -26,8 +26,7 @@
|
||||
|
||||
//#include "vice.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "StdAfx.h"
|
||||
|
||||
//#include "c128mem.h" // [AppleWin-TC]
|
||||
//#include "c128mmu.h"
|
||||
|
Loading…
Reference in New Issue
Block a user