27 #include "eng3d/log.hpp"
28 #include "eng3d/utils.hpp"
29 #ifdef E3D_TARGET_WINDOWS
33 #ifdef E3D_TARGET_ANDROID
34 # include <android_native_app_glue.h>
35 # define APPNAME "baseapp"
36 void android_main(
struct android_app* state)
39 ANativeActivity_finish(state->activity);
41 #elif defined E3D_TARGET_SWITCH
47 extern "C" long pathconf(
const char *pathname,
int varcode) {
63 case _PC_CHOWN_RESTRICTED:
73 extern "C" long sysconf(
int) {
76 #elif defined E3D_TARGET_WINDOWS
77 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
79 case DLL_PROCESS_ATTACH:
85 case DLL_THREAD_ATTACH:
87 case DLL_THREAD_DETACH:
89 case DLL_PROCESS_DETACH:
90 if(lpvReserved !=
nullptr)
break;
int main(int argc, char **argv)