Skip to content

Commit

Permalink
! build fixes for calendar and clock
Browse files Browse the repository at this point in the history
  • Loading branch information
White-Tiger committed Jun 18, 2014
1 parent 4cbbd91 commit 593704d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Source/Calendar/Calendar.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<AdditionalDependencies>Advapi32.lib;user32.lib;comctl32.lib;</AdditionalDependencies>
<AdditionalDependencies>Advapi32.lib;User32.lib;Shell32.lib;comctl32.lib;</AdditionalDependencies>
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Windows</SubSystem>
Expand All @@ -100,7 +100,7 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<AdditionalDependencies>Advapi32.lib;user32.lib;comctl32.lib;</AdditionalDependencies>
<AdditionalDependencies>Advapi32.lib;User32.lib;Shell32.lib;comctl32.lib;</AdditionalDependencies>
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Windows</SubSystem>
Expand All @@ -122,7 +122,7 @@
<CompileAs>CompileAsC</CompileAs>
</ClCompile>
<Link>
<AdditionalDependencies>Advapi32.lib;user32.lib;comctl32.lib;</AdditionalDependencies>
<AdditionalDependencies>Advapi32.lib;User32.lib;Shell32.lib;comctl32.lib;</AdditionalDependencies>
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
<GenerateDebugInformation>false</GenerateDebugInformation>
<SubSystem>Windows</SubSystem>
Expand All @@ -149,7 +149,7 @@
<CompileAs>CompileAsC</CompileAs>
</ClCompile>
<Link>
<AdditionalDependencies>Advapi32.lib;user32.lib;comctl32.lib;</AdditionalDependencies>
<AdditionalDependencies>Advapi32.lib;User32.lib;Shell32.lib;comctl32.lib;</AdditionalDependencies>
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
<GenerateDebugInformation>false</GenerateDebugInformation>
<SubSystem>Windows</SubSystem>
Expand Down
2 changes: 1 addition & 1 deletion Source/Calendar/DeskCalendar.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ LRESULT CALLBACK MainWndProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam)
if(ivMonthsPast){
SYSTEMTIME st,stnew; MonthCal_GetCurSel(hCal,&st); stnew=st;
if(stnew.wMonth<ivMonthsPast){ --stnew.wYear; stnew.wMonth+=12; }
stnew.wMonth-=ivMonthsPast;
stnew.wMonth-=(short)ivMonthsPast;
if(stnew.wMonth>12){ ++stnew.wYear; stnew.wMonth-=12; } // in case ivMonthsPast is negative
MonthCal_SetCurSel(hCal,&stnew);
MonthCal_SetCurSel(hCal,&st);
Expand Down
8 changes: 4 additions & 4 deletions Source/Clock/Win32/Win32.Clock.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<AdditionalDependencies>Advapi32.lib;kernel32.lib;Ws2_32.lib;user32.lib;Mpr.lib;../../../$(Configuration)/$(Platform)/tClock.lib;ole32.lib;Comdlg32.lib;shlwapi.lib;Version.lib;comctl32.lib;gdi32.lib;shell32.lib;Winmm.lib;Psapi.lib;UxTheme.lib</AdditionalDependencies>
<AdditionalDependencies>Advapi32.lib;kernel32.lib;Ws2_32.lib;User32.lib;Shell32.lib;Mpr.lib;../../../$(Configuration)/$(Platform)/tClock.lib;ole32.lib;Comdlg32.lib;shlwapi.lib;Version.lib;comctl32.lib;gdi32.lib;shell32.lib;Winmm.lib;Psapi.lib;UxTheme.lib</AdditionalDependencies>
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Windows</SubSystem>
Expand All @@ -100,7 +100,7 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<AdditionalDependencies>Advapi32.lib;kernel32.lib;Ws2_32.lib;user32.lib;Mpr.lib;../../../$(Configuration)/$(Platform)/tClock.lib;ole32.lib;Comdlg32.lib;shlwapi.lib;Version.lib;comctl32.lib;gdi32.lib;shell32.lib;Winmm.lib;Psapi.lib;UxTheme.lib</AdditionalDependencies>
<AdditionalDependencies>Advapi32.lib;kernel32.lib;Ws2_32.lib;User32.lib;Shell32.lib;Mpr.lib;../../../$(Configuration)/$(Platform)/tClock.lib;ole32.lib;Comdlg32.lib;shlwapi.lib;Version.lib;comctl32.lib;gdi32.lib;shell32.lib;Winmm.lib;Psapi.lib;UxTheme.lib</AdditionalDependencies>
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Windows</SubSystem>
Expand All @@ -122,7 +122,7 @@
<CompileAs>CompileAsC</CompileAs>
</ClCompile>
<Link>
<AdditionalDependencies>Advapi32.lib;kernel32.lib;Ws2_32.lib;user32.lib;Mpr.lib;../../../$(Configuration)/$(Platform)/tClock.lib;ole32.lib;Comdlg32.lib;shlwapi.lib;Version.lib;comctl32.lib;gdi32.lib;shell32.lib;Winmm.lib;Psapi.lib;UxTheme.lib</AdditionalDependencies>
<AdditionalDependencies>Advapi32.lib;kernel32.lib;Ws2_32.lib;User32.lib;Shell32.lib;Mpr.lib;../../../$(Configuration)/$(Platform)/tClock.lib;ole32.lib;Comdlg32.lib;shlwapi.lib;Version.lib;comctl32.lib;gdi32.lib;shell32.lib;Winmm.lib;Psapi.lib;UxTheme.lib</AdditionalDependencies>
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
<GenerateDebugInformation>false</GenerateDebugInformation>
<SubSystem>Windows</SubSystem>
Expand All @@ -149,7 +149,7 @@
<CompileAs>CompileAsC</CompileAs>
</ClCompile>
<Link>
<AdditionalDependencies>Advapi32.lib;kernel32.lib;Ws2_32.lib;user32.lib;Mpr.lib;../../../$(Configuration)/$(Platform)/tClock.lib;ole32.lib;Comdlg32.lib;shlwapi.lib;Version.lib;comctl32.lib;gdi32.lib;shell32.lib;Winmm.lib;Psapi.lib;UxTheme.lib</AdditionalDependencies>
<AdditionalDependencies>Advapi32.lib;kernel32.lib;Ws2_32.lib;User32.lib;Shell32.lib;Mpr.lib;../../../$(Configuration)/$(Platform)/tClock.lib;ole32.lib;Comdlg32.lib;shlwapi.lib;Version.lib;comctl32.lib;gdi32.lib;shell32.lib;Winmm.lib;Psapi.lib;UxTheme.lib</AdditionalDependencies>
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
<GenerateDebugInformation>false</GenerateDebugInformation>
<SubSystem>Windows</SubSystem>
Expand Down
3 changes: 2 additions & 1 deletion T-Clock-XPCalendar.cbp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
<Add option="/DTCLOCK_LIGHT" />
</Compiler>
<Linker>
<Add library="user32" />
<Add library="User32" />
<Add library="Shell32" />
<Add library="Advapi32" />
<Add library="Comctl32" />
</Linker>
Expand Down

0 comments on commit 593704d

Please sign in to comment.