]> git.tdb.fi Git - libs/core.git/blob - source/core/android/main.cpp
Use #ifdef _WIN32 rather than WIN32
[libs/core.git] / source / core / android / main.cpp
1 #include "mainthread.h"
2
3 extern "C" void ANativeActivity_onCreate(ANativeActivity *activity, void * /*saved_state*/, size_t /*state_size*/)
4 {
5         static Msp::Android::MainThread *thread = 0;
6         if(thread)
7                 thread->attach_to_activity(activity);
8         else
9                 thread = new Msp::Android::MainThread(activity);
10         thread->wait_for_app_created();
11 }