Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Making main.cc compilable with g++

  • Loading branch information...
commit d810bda543d10ff16907c809c6d220597bbbd975 1 parent 6dab159
Hauke authored

Showing 1 changed file with 24 additions and 11 deletions. Show diff stats Hide diff stats

  1. +24 11 src/main.cc
35 src/main.cc
... ... @@ -1,22 +1,35 @@
1   -#include "main.h"
  1 +#include <ClanLib/application.h>
  2 +#include <ClanLib/core.h>
  3 +#include <ClanLib/display.h>
  4 +#include <ClanLib/gl.h>
  5 +#include <ClanLib/gui.h>
  6 +
  7 +#include <vector>
  8 +
  9 +using namespace std;
  10 +
  11 +class Main {
  12 +
  13 +public:
2 14
3 15 // Implementation of class Main
4 16 #ifdef WINDOWS
5   -static int Main::WinMain(const vector<CL_String> &args) {
  17 + static int WinMain(const vector<CL_String> &args) {
6 18 #else
7   -static int Main::main(const vector<CL_String> &args) {
  19 + static int main(const vector<CL_String> &args) {
8 20 #endif
9 21
10   - // Setup ClanLib modules
11   - CL_SetupCore setup_core;
12   - CL_SetupDisplay setup_display;
13   - CL_SetupGL setup_gl;
14   - CL_SetupGUI setup_gui;
  22 + // Setup ClanLib modules
  23 + CL_SetupCore setup_core;
  24 + CL_SetupDisplay setup_display;
  25 + CL_SetupGL setup_gl;
  26 + CL_SetupGUI setup_gui;
15 27
16   - // Start the game here
  28 + // Start the game here
17 29
18   - return 0;
19   -}
  30 + return 0;
  31 + }
  32 +};
20 33
21 34 #ifdef WINDOWS
22 35 CL_ClanApplication app(&Main::WinMain);

0 comments on commit d810bda

Please sign in to comment.
Something went wrong with that request. Please try again.