cloudwu / pbc

A protocol buffers library for C
MIT License
1.62k stars 568 forks source link

lua/pbc-lua.c windows下编译问题 #66

Closed luzexi closed 8 years ago

luzexi commented 9 years ago

由于windows下编译不通过,查看原因。

https://github.com/cloudwu/pbc/blob/master/binding/lua/pbc-lua.c

#ifndef _MSC_VER
#include <alloca.h>
#else
#define alloca _alloca
#endif

是否应该改成

#ifndef WINVER
#include <alloca.h>
#else
#define alloca _alloca
#endif

在用MinGW编译pbc与slua合进dll时发生的错误。

luzexi commented 9 years ago

不改报找不到alloca.h,改掉,或者全部删掉,就可以。

dearlulu commented 8 years ago

I also met the question. Do you have some enlighten effect on solving this question?

owent commented 8 years ago

https://github.com/cloudwu/pbc/pull/80 这个PR修复了这个问题。让lua53和lua51保持一致