From d29b791415ef1a667e838fe4862dad2d12aae307 Mon Sep 17 00:00:00 2001 From: Stef Date: Fri, 12 Nov 2010 03:39:07 +0000 Subject: Fix build on win32 --- .gitignore | 4 + src/compat.h | 3 + win32/.cvsignore | 7 - win32/win32.dsp | 171 -------------------- win32/win32.dsw | 29 ---- win32/win32.sln | 20 +++ win32/win32.vcproj | 456 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 483 insertions(+), 207 deletions(-) delete mode 100644 win32/.cvsignore delete mode 100644 win32/win32.dsp delete mode 100644 win32/win32.dsw create mode 100644 win32/win32.sln create mode 100644 win32/win32.vcproj diff --git a/.gitignore b/.gitignore index 0ff01ed..6559a69 100644 --- a/.gitignore +++ b/.gitignore @@ -19,5 +19,9 @@ trash *.tar.gz .* *.o +*.ncb +*.suo +*.user /src/scrounge-ntfs +/win32/debug diff --git a/src/compat.h b/src/compat.h index e23af61..1253245 100644 --- a/src/compat.h +++ b/src/compat.h @@ -159,6 +159,9 @@ typedef unsigned int uint; #endif #endif +#ifdef WIN32 +#define strtoull _strtoui64 +#endif #ifdef HAVE_UNISTD_H #include diff --git a/win32/.cvsignore b/win32/.cvsignore deleted file mode 100644 index f45ace2..0000000 --- a/win32/.cvsignore +++ /dev/null @@ -1,7 +0,0 @@ -win32.ncb -win32.plg -win32.opt -debug -Makefile -Makefile.in -release \ No newline at end of file diff --git a/win32/win32.dsp b/win32/win32.dsp deleted file mode 100644 index cf0449f..0000000 --- a/win32/win32.dsp +++ /dev/null @@ -1,171 +0,0 @@ -# Microsoft Developer Studio Project File - Name="win32" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=win32 - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "win32.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "win32.mak" CFG="win32 - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "win32 - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "win32 - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP AllowPerConfigDependencies 0 -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "win32 - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "release" -# PROP Intermediate_Dir "release" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /W3 /GX /O2 /I "../" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /out:"release/scrounge-ntfs.exe" /opt:nowin98 -# SUBTRACT LINK32 /pdb:none - -!ELSEIF "$(CFG)" == "win32 - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "debug" -# PROP Intermediate_Dir "debug" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c -# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "../" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /out:"debug/scrounge-ntfs.exe" /pdbtype:sept - -!ENDIF - -# Begin Target - -# Name "win32 - Win32 Release" -# Name "win32 - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" -# Begin Source File - -SOURCE=..\src\compat.c -# End Source File -# Begin Source File - -SOURCE=..\src\list.c -# End Source File -# Begin Source File - -SOURCE=..\src\main.c -# End Source File -# Begin Source File - -SOURCE=..\src\misc.c -# End Source File -# Begin Source File - -SOURCE=..\src\ntfs.c -# End Source File -# Begin Source File - -SOURCE=..\src\ntfsx.c -# End Source File -# Begin Source File - -SOURCE=..\src\scrounge.c -# End Source File -# Begin Source File - -SOURCE=..\src\search.c -# End Source File -# Begin Source File - -SOURCE=..\src\win32.c -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "h;hpp;hxx;hm;inl" -# Begin Source File - -SOURCE=..\src\compat.h -# End Source File -# Begin Source File - -SOURCE=..\src\debug.h -# End Source File -# Begin Source File - -SOURCE=..\src\drive.h -# End Source File -# Begin Source File - -SOURCE=..\src\locks.h -# End Source File -# Begin Source File - -SOURCE=..\src\memref.h -# End Source File -# Begin Source File - -SOURCE=..\src\ntfs.h -# End Source File -# Begin Source File - -SOURCE=..\src\ntfsx.h -# End Source File -# Begin Source File - -SOURCE=..\src\scrounge.h -# End Source File -# Begin Source File - -SOURCE=..\src\usuals.h -# End Source File -# End Group -# Begin Group "Resource Files" - -# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" -# End Group -# End Target -# End Project diff --git a/win32/win32.dsw b/win32/win32.dsw deleted file mode 100644 index 5c8ab56..0000000 --- a/win32/win32.dsw +++ /dev/null @@ -1,29 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "win32"=".\win32.dsp" - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/win32/win32.sln b/win32/win32.sln new file mode 100644 index 0000000..845a254 --- /dev/null +++ b/win32/win32.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "win32", "win32.vcproj", "{AA752597-4C41-406B-9BDE-6A6E42B40607}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {AA752597-4C41-406B-9BDE-6A6E42B40607}.Debug|Win32.ActiveCfg = Debug|Win32 + {AA752597-4C41-406B-9BDE-6A6E42B40607}.Debug|Win32.Build.0 = Debug|Win32 + {AA752597-4C41-406B-9BDE-6A6E42B40607}.Release|Win32.ActiveCfg = Release|Win32 + {AA752597-4C41-406B-9BDE-6A6E42B40607}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/win32/win32.vcproj b/win32/win32.vcproj new file mode 100644 index 0000000..68b68ba --- /dev/null +++ b/win32/win32.vcproj @@ -0,0 +1,456 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3