~ubuntu-branches/ubuntu/precise/p7zip/precise-updates

« back to all changes in this revision

Viewing changes to CPP/myWindows/StdAfx.h

  • Committer: Bazaar Package Importer
  • Author(s): Mohammed Adnène Trojette
  • Date: 2009-02-14 20:12:27 UTC
  • mfrom: (1.1.11 upstream) (2.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090214201227-go63qxm9ozfdma60
Tags: 4.65~dfsg.1-1
* New upstream release.
* Remove wx2.8 Build-Depends added by mistakes (7zG is not yet
  intended to be built).
* Use dh_clean without -k.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <errno.h>
29
29
#include <math.h>
30
30
 
 
31
#ifdef __NETWARE__
 
32
#include <sys/types.h>
 
33
#endif
 
34
 
31
35
#undef CS /* fix for Solaris 10 x86 */
32
36
 
33
37
/***************************/
38
42
inline DWORD WINAPI GetLastError(void) { return errno; }
39
43
inline void WINAPI SetLastError( DWORD err ) { errno = err; }
40
44
 
41
 
#define AreFileApisANSI() 1
 
45
#define AreFileApisANSI() (1)
 
46
 
 
47
void Sleep(unsigned millisleep);
 
48
 
 
49
typedef pid_t t_processID;
 
50
 
 
51
t_processID GetCurrentProcess(void);
 
52
 
 
53
#define  NORMAL_PRIORITY_CLASS (0)
 
54
#define  IDLE_PRIORITY_CLASS   (10)
 
55
void SetPriorityClass(t_processID , int priority);
 
56
 
 
57
#ifdef __cplusplus
 
58
class wxWindow;
 
59
typedef wxWindow *HWND;
 
60
 
 
61
#define MB_ICONERROR (0x00000200) // wxICON_ERROR
 
62
#define MB_YESNOCANCEL (0x00000002 | 0x00000008 | 0x00000010) // wxYES | wxNO | wxCANCEL
 
63
#define MB_ICONQUESTION (0x00000400) // wxICON_QUESTION
 
64
#define MB_TASKMODAL  (0) // FIXME
 
65
#define MB_SYSTEMMODAL (0) // FIXME
 
66
 
 
67
#define MB_OK (0) // FIXME !
 
68
#define MB_ICONSTOP (0) // FIXME !
 
69
#define MB_OKCANCEL (0) // FIXME !
 
70
 
 
71
#define MessageBox MessageBoxW
 
72
int MessageBoxW(wxWindow * parent, const TCHAR * mes, const TCHAR * title,int flag);
 
73
 
 
74
typedef void *HINSTANCE;
 
75
 
 
76
typedef          int   INT_PTR;  // FIXME 64 bits ?
 
77
typedef unsigned int  UINT_PTR;  // FIXME 64 bits ?
 
78
typedef          long LONG_PTR;  // FIXME 64 bits ?
 
79
typedef          long DWORD_PTR; // FIXME 64 bits ?
 
80
typedef UINT_PTR WPARAM;
 
81
 
 
82
/* WARNING
 
83
 LPARAM shall be 'long' because of CListView::SortItems and wxListCtrl::SortItems :
 
84
*/
 
85
typedef LONG_PTR LPARAM;
 
86
typedef LONG_PTR LRESULT;
 
87
 
 
88
#define CALLBACK /* */
 
89
 
 
90
/************ LANG ***********/
 
91
typedef WORD            LANGID;
 
92
 
 
93
LANGID GetUserDefaultLangID(void);
 
94
LANGID GetSystemDefaultLangID(void);
 
95
 
 
96
#define PRIMARYLANGID(l)        ((WORD)(l) & 0x3ff)
 
97
#define SUBLANGID(l)            ((WORD)(l) >> 10)
 
98
 
 
99
#endif
42
100
 
43
101
#endif 
44
102