oulan / firebreath

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

stdint.h conflicts when including libavcodec #144

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
include avcodec.h 
compile plugin

ffmpeg's avcodec.h has it's own stdint.h with similar microsoft header but the 
guard is "#ifndef _MSC_STDINT_H_"

The visual studio and Firebreath stdint.h and fb_stdint.h use "#ifndef _STDINT"

This cause multiple redefinition errors and breaks the build.

FB_stdint.h was added in FB-1.4.

The only workaround i could find was to wrap the fb_stdint.h guard in the 
libavcodec guard. 

Modifing fb_stdint.h :
....
#ifndef _MSC_STDINT_H_
#define _MSC_STDINT_H_

#ifndef _STDINT
#define _STDINT
...
#endif // _STDINT
#endif // _MSC_STDINT_H_
#endif // FB_WIN

Original issue reported on code.google.com by jshana...@gmail.com on 13 Feb 2011 at 6:09

GoogleCodeExporter commented 9 years ago
Fixed in the latest 1.4

Original comment by richarda...@gmail.com on 14 Feb 2011 at 11:23