mirror of
https://github.com/reactos/reactos.git
synced 2025-07-04 16:11:24 +00:00
corrections for compiling as winelib application
svn path=/trunk/; revision=6178
This commit is contained in:
parent
4472b96d6b
commit
4adc17e7ad
5 changed files with 8 additions and 8 deletions
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
enum ENTRY_TYPE {
|
enum ENTRY_TYPE {
|
||||||
ET_WINDOWS,
|
ET_WINDOWS,
|
||||||
#ifdef __linux__
|
#ifdef __WINE__
|
||||||
ET_UNIX,
|
ET_UNIX,
|
||||||
#endif
|
#endif
|
||||||
ET_SHELL
|
ET_SHELL
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
FileChildWndInfo::FileChildWndInfo(LPCTSTR path)
|
FileChildWndInfo::FileChildWndInfo(LPCTSTR path)
|
||||||
{
|
{
|
||||||
#ifdef __linux__
|
#ifdef __WINE__
|
||||||
if (*path == '/')
|
if (*path == '/')
|
||||||
_etype = ET_UNIX;
|
_etype = ET_UNIX;
|
||||||
else
|
else
|
||||||
|
@ -86,7 +86,7 @@ FileChildWindow::FileChildWindow(HWND hwnd, const FileChildWndInfo& info)
|
||||||
entry = _root._entry->read_tree((LPCTSTR)&*shell_info._shell_path, SORT_NAME/*_sortOrder*/);
|
entry = _root._entry->read_tree((LPCTSTR)&*shell_info._shell_path, SORT_NAME/*_sortOrder*/);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#ifdef __linux__
|
#ifdef __WINE__
|
||||||
if (info._etype == ET_UNIX)
|
if (info._etype == ET_UNIX)
|
||||||
{
|
{
|
||||||
_root._drive_type = GetDriveType(info._path);
|
_root._drive_type = GetDriveType(info._path);
|
||||||
|
|
|
@ -90,7 +90,7 @@ MainFrame::MainFrame(HWND hwnd)
|
||||||
|
|
||||||
drivebarBtn.fsStyle = BTNS_BUTTON;
|
drivebarBtn.fsStyle = BTNS_BUTTON;
|
||||||
|
|
||||||
#ifdef _linux_
|
#ifdef __WINE__
|
||||||
// insert unix file system button
|
// insert unix file system button
|
||||||
SendMessage(_hdrivebar, TB_ADDSTRING, 0, (LPARAM)TEXT("/\0"));
|
SendMessage(_hdrivebar, TB_ADDSTRING, 0, (LPARAM)TEXT("/\0"));
|
||||||
|
|
||||||
|
@ -381,7 +381,7 @@ int MainFrame::Command(int id, int code)
|
||||||
CheckMenuItem(_menu_info._hMenuOptions, id, toggle_fullscreen()?MF_CHECKED:0);
|
CheckMenuItem(_menu_info._hMenuOptions, id, toggle_fullscreen()?MF_CHECKED:0);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifdef _linux_
|
#ifdef __WINE__
|
||||||
case ID_DRIVE_UNIX_FS: {
|
case ID_DRIVE_UNIX_FS: {
|
||||||
TCHAR path[MAX_PATH];
|
TCHAR path[MAX_PATH];
|
||||||
FileChildWindow* child;
|
FileChildWindow* child;
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __WINE__
|
||||||
|
|
||||||
#include "../utility/utility.h"
|
#include "../utility/utility.h"
|
||||||
#include "../utility/shellclasses.h"
|
#include "../utility/shellclasses.h"
|
||||||
|
@ -195,4 +195,4 @@ void UnixEntry::get_path(PTSTR path) const
|
||||||
path[len] = TEXT('\0');
|
path[len] = TEXT('\0');
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // __linux__
|
#endif // __WINE__
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __WINE__
|
||||||
|
|
||||||
struct UnixEntry : public Entry
|
struct UnixEntry : public Entry
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue