[Bf-committers] Compile Failure since 53730?

Campbell Barton ideasman42 at gmail.com
Sat Jan 12 11:41:08 CET 2013


On Sat, Jan 12, 2013 at 9:16 AM, Dominik Maier <codepoint92 at gmail.com> wrote:
> Hello Harley,
>
> the problem is that in the c standart library of msvc inline is defined as
> __inline. If you add these two underscores it works.
> This is specific to msvc, it works on the gnu c compiler without the
> underscores (also on MinGW).
> Also for the msvc c++ compiler inline without underscores works.
>
> Best regards
>
> Dominik
>
> 2013/1/11 Harley Acheson <harley.acheson at gmail.com>
>
>> Hello,
>>
>> Getting errors compiling (scons VS9) since 53730 with errors
>> in editmesh_knife.c. Compiles fine if I revert that one change.
>>
>> Harley
>>
>>
>> source\blender\editors\mesh\editmesh_knife.c(228) :
>>   error C2054: expected '(' to follow 'inline'
>>
>> source\blender\editors\mesh\editmesh_knife.c(229) :
>>   error C2085: 'round_ftoi' :not in formal parameter list
>>
>> source\blender\editors\mesh\editmesh_knife.c(229) :
>>   error C2143: syntax error : missing ';' before '{'
>>
>> source\blender\editors\mesh\editmesh_knife.c(1777) :
>>   error C4013: 'round_ftoi' undefined; assuming extern returning int
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers
>>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers

Replaced with BLI_INLINE define, should work now.

-- 
- Campbell


More information about the Bf-committers mailing list