mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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 {
|
||||
ET_WINDOWS,
|
||||
#ifdef __linux__
|
||||
#ifdef __WINE__
|
||||
ET_UNIX,
|
||||
#endif
|
||||
ET_SHELL
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
FileChildWndInfo::FileChildWndInfo(LPCTSTR path)
|
||||
{
|
||||
#ifdef __linux__
|
||||
#ifdef __WINE__
|
||||
if (*path == '/')
|
||||
_etype = ET_UNIX;
|
||||
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*/);
|
||||
}
|
||||
else
|
||||
#ifdef __linux__
|
||||
#ifdef __WINE__
|
||||
if (info._etype == ET_UNIX)
|
||||
{
|
||||
_root._drive_type = GetDriveType(info._path);
|
||||
|
|
|
@ -90,7 +90,7 @@ MainFrame::MainFrame(HWND hwnd)
|
|||
|
||||
drivebarBtn.fsStyle = BTNS_BUTTON;
|
||||
|
||||
#ifdef _linux_
|
||||
#ifdef __WINE__
|
||||
// insert unix file system button
|
||||
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);
|
||||
break;
|
||||
|
||||
#ifdef _linux_
|
||||
#ifdef __WINE__
|
||||
case ID_DRIVE_UNIX_FS: {
|
||||
TCHAR path[MAX_PATH];
|
||||
FileChildWindow* child;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
//
|
||||
|
||||
|
||||
#ifdef __linux__
|
||||
#ifdef __WINE__
|
||||
|
||||
#include "../utility/utility.h"
|
||||
#include "../utility/shellclasses.h"
|
||||
|
@ -195,4 +195,4 @@ void UnixEntry::get_path(PTSTR path) const
|
|||
path[len] = TEXT('\0');
|
||||
}
|
||||
|
||||
#endif // __linux__
|
||||
#endif // __WINE__
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
//
|
||||
|
||||
|
||||
#ifdef __linux__
|
||||
#ifdef __WINE__
|
||||
|
||||
struct UnixEntry : public Entry
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue