Skip to content

Commit

Permalink
condit. name the main func based on os
Browse files Browse the repository at this point in the history
  • Loading branch information
jwt2706 committed May 9, 2024
1 parent 9656b37 commit 1c780d1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
#ifdef _WIN32
#define mainF SDL_main
#else
#define mainF main
#endif

#include <SDL2/SDL.h>
#include <stdio.h>
#include "../include/sdlutils.h"
#include "../include/keyboard.h"
#include "../include/chip8.h"
#include "../include/load.h"

int SDL_main(int argc, char *argv[])
int mainF(int argc, char *argv[])
{
// init sdl2
SDLComponents components;
Expand Down

0 comments on commit 1c780d1

Please sign in to comment.