Chen-tao / webm

Automatically exported from code.google.com/p/webm
0 stars 0 forks source link

int types redefinition error in vpx_integer.h #327

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am using VPX 0.9.6.1 on Visual Studio 2010.
If I include both vpx_codec.h and stdint.h in my application I get the 
following errors:
1>my_project_dir\include\vpx\vpx_integer.h(36): error C2371: 'int_fast16_t' : 
redefinition; different basic types
1>          c:\program files\microsoft visual studio 
10.0\vc\include\stdint.h(34) : see declaration of 'int_fast16_t'
1>my_project_dir\include\vpx\vpx_integer.h(38): error C2371: 'int_fast8_t' : 
redefinition; different basic types
1>          c:\program files\microsoft visual studio 
10.0\vc\include\stdint.h(33) : see declaration of 'int_fast8_t'

I checked both header files, and the definitions are actually different:

stdint.h:
typedef char int_fast8_t;
typedef int int_fast16_t;

vpx_integer.h:
typedef signed char int_fast8_t;
typedef signed short int_fast16_t;

What could be the problem?

Original issue reported on code.google.com by oppili...@gmail.com on 3 May 2011 at 10:06

GoogleCodeExporter commented 9 years ago

Original comment by iss...@webmproject.org on 3 May 2011 at 10:10

GoogleCodeExporter commented 9 years ago
Can you try changing HAVE_STDINT_H to 1 in vpx_config.h?

Original comment by jkoles...@google.com on 3 May 2011 at 3:56

GoogleCodeExporter commented 9 years ago
This does not change anything, unfortunately.
Types defined in vpx_integer.h do not seem to be affected by HAVE_STDINT_H.

Original comment by oppili...@gmail.com on 3 May 2011 at 10:12

GoogleCodeExporter commented 9 years ago
Can you try this patch?

Original comment by jkoles...@google.com on 5 May 2011 at 2:54

Attachments:

GoogleCodeExporter commented 9 years ago
It works fine, thanks!

Original comment by oppili...@gmail.com on 6 May 2011 at 10:12

GoogleCodeExporter commented 9 years ago
https://review.webmproject.org/2281

Original comment by jkoles...@google.com on 6 May 2011 at 12:04