Changeset 34bd549 in network-game for client


Ignore:
Timestamp:
Jun 19, 2014, 1:34:15 AM (11 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
master
Children:
3ea1839
Parents:
883bb5d
Message:

Make client compile on a Mac

Location:
client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • client/Client/main.cpp

    r883bb5d r34bd549  
    1111   #include <netdb.h>
    1212   #include <cstring>
     13#elif defined MAC
     14   #include <netdb.h>
    1315#endif
    1416
     
    171173      font = al_load_ttf_font("../pirulen.ttf", 12, 0);
    172174   #elif defined LINUX
     175      font = al_load_ttf_font("pirulen.ttf", 12, 0);
     176   #elif defined MAC
    173177      font = al_load_ttf_font("pirulen.ttf", 12, 0);
    174178   #endif
     
    782786               #elif defined LINUX
    783787                  game = new Game(gameName, "../data/map.txt", &msgProcessor);
     788               #elif defined MAC
     789                  game = new Game(gameName, "../data/map.txt", &msgProcessor);
    784790               #endif
    785791
     
    13031309
    13041310   msgProcessor.sendMessage(&msgTo, &server);
     1311   cout << "Sent CREATE_GAME message" << endl;
    13051312}
    13061313
  • client/makefile

    r883bb5d r34bd549  
    11CC = g++
    2 LIB_FLAGS = `pkg-config --cflags --libs --static allegro-static-5.0 allegro_ttf-static-5.0 allegro_primitives-static-5.0`
     2#LIB_FLAGS = `pkg-config --cflags --libs --static allegro-static-5.0 allegro_main-static-5.0 allegro_ttf-static-5.0 allegro_primitives-static-5.0`
     3# osx needs to link against some extra libraries
     4LIB_FLAGS = `pkg-config --cflags --libs --static allegro-static-5.0 allegro_main-static-5.0 allegro_ttf-static-5.0 allegro_primitives-static-5.0` -framework AppKit -framework IOKit -framework OpenGL -framework AGL -framework OpenAL
    35FLAGS = -Wall -g
    46COMMON_PATH = ../common
Note: See TracChangeset for help on using the changeset viewer.