some compilations errors fixed
This commit is contained in:
parent
fc113617c9
commit
10a627ddb3
@ -11,7 +11,7 @@ pixel[1] = header_data_cmap[(unsigned char)data[0]][1]; \
|
||||
pixel[2] = header_data_cmap[(unsigned char)data[0]][2]; \
|
||||
data ++; }
|
||||
|
||||
static char header_data_cmap[256][3] = {
|
||||
static unsigned char header_data_cmap[256][3] = {
|
||||
{ 0, 0, 0},
|
||||
{255,255,255},
|
||||
{255,255,255},
|
||||
|
@ -3,10 +3,10 @@
|
||||
#include "image.h"
|
||||
|
||||
// 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
|
||||
// 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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user