- compiles without PSDK again

- moved all defines that are missing without PSDK to Platform.h


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3436 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2004-01-30 22:04:10 +00:00
parent 8dbe4f1203
commit bd25e070c8
23 changed files with 24 additions and 81 deletions

View file

@ -2,11 +2,11 @@
// #include "StdAfx.h"
#include <windows.h>
#include <initguid.h>
#ifndef INITGUID
#define INITGUID
#endif
#include <objbase.h>
#include <initguid.h>
#include "../Platform.h"
#include "7zip/ICoder.h"
#include "7zip/Compress/LZ/IMatchFinder.h"

View file

@ -21,7 +21,6 @@
*/
#include "DialogTemplate.h"
#include <commctrl.h>
//////////////////////////////////////////////////////////////////////
// Utilities
@ -263,10 +262,6 @@ int CDialogTemplate::RemoveItem(WORD wId) {
return 0;
}
#ifndef DS_SHELLFONT
#define DS_SHELLFONT (DS_SETFONT | DS_FIXEDSYS)
#endif
// Sets the font of the dialog
void CDialogTemplate::SetFont(char* szFaceName, WORD wFontSize) {
if (lstrcmp(szFaceName, "MS Shell Dlg")) {

View file

@ -27,19 +27,12 @@
#pragma once
#endif // _MSC_VER > 1000
#include <Windows.h>
#include "Platform.h"
#include <Vector>
#include <StdExcept>
using namespace std;
#ifndef IS_INTRESOURCE
#ifndef ULONG_PTR
#define ULONG_PTR DWORD
#endif
#define IS_INTRESOURCE(_r) (((ULONG_PTR)(_r) >> 16) == 0)
#endif
struct DialogItemTemplate {
DWORD dwHelpId; // Extended only

View file

@ -2,7 +2,7 @@
#ifdef NSIS_CONFIG_PLUGIN_SUPPORT
#include "Plugins.h"
#include <windows.h>
#include "Platform.h"
#include <WinNT.h>

View file

@ -1,11 +1,7 @@
#ifndef __X18_PLUGINS_H
#define __X18_PLUGINS_H
#include <windows.h>
#include <stdio.h>
#include "Platform.h"
#include "strlist.h"
struct plugin {

View file

@ -29,7 +29,7 @@
#ifdef RESOURCE_EDITOR_NOT_API
#include <Windows.h>
#include "Platform.h"
#include <WinNT.h>
#include <Time.h>
#include <Vector>
@ -40,13 +40,6 @@
#include <StdExcept>
using namespace std;
#ifndef IS_INTRESOURCE
#ifndef ULONG_PTR
#define ULONG_PTR DWORD
#endif
#define IS_INTRESOURCE(_r) (((ULONG_PTR)(_r) >> 16) == 0)
#endif
class CResourceDirectory;
class CResourceDirectoryEntry;
class CResourceDataEntry;

View file

@ -2,7 +2,7 @@
//
//////////////////////////////////////////////////////////////////////
#include <windows.h>
#include "Platform.h"
#include "build.h"
#include "ResourceVersionInfo.h"

View file

@ -1,4 +1,4 @@
#include <windows.h>
#include "Platform.h"
#ifndef IDC_STATIC
#define IDC_STATIC -1

View file

@ -1,4 +1,4 @@
#include <windows.h>
#include "Platform.h"
#include <stdio.h>
#include "exehead/config.h"
#include "exehead/fileform.h"

View file

@ -24,8 +24,7 @@
*/
#include <windows.h>
#include <commctrl.h>
#include "../Platform.h"
#include <shlobj.h>
#include "resource.h"
#include "util.h"

View file

@ -20,7 +20,7 @@
* 3. This notice may not be removed or altered from any source distribution.
*/
#include <windows.h>
#include "../Platform.h"
#include <windowsx.h>
#include <shlobj.h>
#include <shellapi.h>
@ -34,9 +34,6 @@
#include "exec.h"
#include "lang.h"
#define LB_ICONWIDTH 20
#define LB_ICONHEIGHT 20
#ifdef NSIS_CONFIG_VISIBLE_SUPPORT
HICON g_hIcon;
#endif
@ -721,9 +718,6 @@ static BOOL CALLBACK LicenseProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM
}
}
if (enlink->msg==WM_SETCURSOR) {
#ifndef IDC_HAND
#define IDC_HAND MAKEINTRESOURCE(32649)
#endif
SetCursor(LoadCursor(0,IDC_HAND));
}
}
@ -857,9 +851,6 @@ static BOOL CALLBACK DirProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
bi.lpfn = BrowseCallbackProc;
bi.lParam = (LPARAM)dir;
bi.lpszTitle = GetNSISStringTT(browse_text);
#ifndef BIF_NEWDIALOGSTYLE
#define BIF_NEWDIALOGSTYLE 0x0040
#endif
bi.ulFlags = BIF_RETURNONLYFSDIRS | BIF_NEWDIALOGSTYLE;
idlist = SHBrowseForFolder(&bi);
if (idlist)
@ -940,10 +931,6 @@ static BOOL CALLBACK DirProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
#ifdef NSIS_CONFIG_COMPONENTPAGE
#ifndef TVITEM
#define TVITEM TV_ITEM
#endif
static int NSISCALL SetChildrenStates(HWND hwTree, HTREEITEM hItem, int iChecked)
{
int iCheckedChildren = 0, iChildren = 0, *pFlags, iState = 1;
@ -1132,13 +1119,6 @@ static BOOL CALLBACK SelProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
TreeView_SetImageList(hwndTree1, hImageList, TVSIL_STATE);
#ifndef TVM_SETITEMHEIGHT
#define TVM_SETITEMHEIGHT (TV_FIRST + 27)
#endif
#ifndef TVM_GETITEMHEIGHT
#define TVM_GETITEMHEIGHT (TV_FIRST + 28)
#endif
if (SendMessage(hwndTree1, TVM_GETITEMHEIGHT, 0, 0) < 16)
SendMessage(hwndTree1, TVM_SETITEMHEIGHT, 16, 0);
@ -1533,9 +1513,6 @@ static DWORD WINAPI install_thread(LPVOID p)
#ifdef NSIS_CONFIG_VISIBLE_SUPPORT
// listview unfolds partly hidden labels if it does not have infotip text
#define LVS_EX_LABELTIP 0x00004000
static BOOL CALLBACK InstProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
HWND linsthwnd=insthwnd;

View file

@ -1,4 +1,4 @@
#include <windows.h>
#include "../Platform.h"
#ifndef IDC_STATIC
#define IDC_STATIC -1

View file

@ -1,4 +1,4 @@
#include <windows.h>
#include "../Platform.h"
#include "resource.h"
#include "config.h"
#include "fileform.h"

View file

@ -387,10 +387,6 @@
#define NSIS_DEFAULT_LANG 1033
#endif
#ifndef INVALID_FILE_ATTRIBUTES
#define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
#endif
#define VARS_SECTION_NAME ".ndata"
typedef char NSIS_STRING[NSIS_MAX_STRLEN];

View file

@ -1,4 +1,4 @@
#include <windows.h>
#include "../Platform.h"
#include <shlobj.h>
#include <shellapi.h>
#include "fileform.h"

View file

@ -1,4 +1,4 @@
#include <windows.h>
#include "../Platform.h"
#include "fileform.h"
#include "util.h"
#include "state.h"

View file

@ -1,4 +1,4 @@
#include <windows.h>
#include "../Platform.h"
#include <shellapi.h>
#include "util.h"
#include "state.h"
@ -27,10 +27,6 @@ NSIS_STRING g_usrvars[1];
#define SECTION_VARS_RWD "/section:" ## VARS_SECTION_NAME ## ",rwd"
#pragma comment(linker, SECTION_VARS_RWD)
#ifndef INVALID_FILE_ATTRIBUTES
#define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
#endif
int NSISCALL my_PIDL2Path(char *out, LPITEMIDLIST idl)
{
int Res;

View file

@ -1,4 +1,4 @@
#include <Windows.h>
#include "Platform.h"
#include <stdio.h>
#include <stdlib.h>
#include "build.h"

View file

@ -28,7 +28,7 @@ const char *NSIS_VERSION="v2.0rc3";
Includes portions derived from bzip2 (see documentation for details).
*/
#include <windows.h>
#include "Platform.h"
#include <stdio.h>
#include <signal.h>

View file

@ -1,4 +1,4 @@
#include <windows.h>
#include "Platform.h"
#include <stdio.h>
#include <shlobj.h>
#define _RICHEDIT_VER 0x0200
@ -13,10 +13,6 @@
#include "lang.h"
#include "exehead/resource.h"
#ifndef FOF_NOERRORUI
#define FOF_NOERRORUI 0x0400
#endif
#define MAX_INCLUDEDEPTH 10
#define MAX_LINELENGTH 4096

View file

@ -1,6 +1,8 @@
#ifndef _STRLIST_H_
#define _STRLIST_H_
#include "Platform.h"
#include <stdio.h>
#include <stdlib.h> // for gcc
class IGrowBuf

View file

@ -1,4 +1,4 @@
#include <windows.h>
#include "Platform.h"
#include <stdlib.h>
#include <stdio.h>

View file

@ -1,4 +1,4 @@
#include <windows.h>
#include "Platform.h"
#include <stdio.h>
#include <stdarg.h>
#include <conio.h>