X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=src%2Fcommon_stub.hpp;fp=src%2Fcommon_stub.hpp;h=ae672dada8b3943ae59fdb0947827de3f6df03d0;hb=36f875785a36c3aa84668f00a7cfcf0d4e3c9e80;hp=b771f338f16c684c33d705afaa23e6e8cedde7da;hpb=29fa227d5418c6346167f3ec46a68bff9f104392;p=SXSI%2Fxpathcomp.git diff --git a/src/common_stub.hpp b/src/common_stub.hpp index b771f33..ae672da 100644 --- a/src/common_stub.hpp +++ b/src/common_stub.hpp @@ -19,8 +19,11 @@ extern "C" { #define NoAlloc //Must be used in front of every function that is called from OCaml. - -#define ML_BINDING extern "C" __attribute__ ((force_align_arg_pointer)) +#if _M_IX86 || __i386 +#define ML_BINDING extern "C" __attribute__ ((force_align_arg_pointer)) +#else +#define ML_BINDING extern "C" +#endif void register_custom_(char* name,