This commit is contained in:
Anselme 2016-06-03 16:45:56 +02:00
commit 8ccc6834d0
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ pixel[1] = header_data_cmap[(unsigned char)data[0]][1]; \
pixel[2] = header_data_cmap[(unsigned char)data[0]][2]; \ pixel[2] = header_data_cmap[(unsigned char)data[0]][2]; \
data ++; } data ++; }
static char header_data_cmap[256][3] = { static unsigned char header_data_cmap[256][3] = {
{ 0, 0, 0}, { 0, 0, 0},
{255,255,255}, {255,255,255},
{255,255,255}, {255,255,255},

View File

@ -3,10 +3,10 @@
#include "image.h" #include "image.h"
// windows MinGW // windows MinGW
// g++ -shared realWorld.cpp -o realWorld.dll -I../include // g++ -shared realWorld.cpp -o realWorld.dll -I../src -funsigned-char -std=c++11
// linux gcc // linux gcc
// g++ -shared realWorld.cpp -o realWorld.so -I../include -fPIC // g++ -shared realWorld.cpp -o realWorld.so -I../src -fPIC -funsigned-char -std=c++11
extern "C" void generate(Map *mapPtr) extern "C" void generate(Map *mapPtr)
{ {