Applied WinCE fix, though data file still not found
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -118,6 +118,10 @@ void CreateFonts();
|
|||||||
#include "wx/clipbrd.h"
|
#include "wx/clipbrd.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __WXWINCE__
|
||||||
|
STDAPI_(__int64) CeGetRandomSeed();
|
||||||
|
#endif
|
||||||
|
|
||||||
IMPLEMENT_APP(MyApp)
|
IMPLEMENT_APP(MyApp)
|
||||||
|
|
||||||
MainWindow *TheMainWindow = NULL;
|
MainWindow *TheMainWindow = NULL;
|
||||||
@@ -523,10 +527,14 @@ bool MyApp::OnInit()
|
|||||||
ReadPreferences();
|
ReadPreferences();
|
||||||
|
|
||||||
// Seed the random number generator
|
// Seed the random number generator
|
||||||
|
#ifdef __WXWINCE__
|
||||||
|
srand((unsigned) CeGetRandomSeed());
|
||||||
|
#else
|
||||||
time_t current_time;
|
time_t current_time;
|
||||||
|
|
||||||
(void)time(¤t_time);
|
(void)time(¤t_time);
|
||||||
srand((unsigned int)current_time);
|
srand((unsigned int)current_time);
|
||||||
|
#endif
|
||||||
|
|
||||||
// randomize();
|
// randomize();
|
||||||
pages[0] = 0;
|
pages[0] = 0;
|
||||||
|
Reference in New Issue
Block a user