mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
Fix for certain libjpeg versions that override INLINE macro
This commit is contained in:
parent
88e963b936
commit
ca2e96d296
@ -36,6 +36,10 @@
|
||||
#include <png.h>
|
||||
#endif
|
||||
|
||||
// jconfig.h overrides our INLINE definition.
|
||||
#ifdef __GNUC__
|
||||
#pragma push_macro("INLINE")
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
#include <stdio.h> // jpeglib requires this to be included first.
|
||||
@ -43,6 +47,11 @@ extern "C" {
|
||||
#include <setjmp.h>
|
||||
}
|
||||
|
||||
// Restore our own INLINE definition.
|
||||
#ifdef __GNUC__
|
||||
#pragma pop_macro("INLINE")
|
||||
#endif
|
||||
|
||||
/**
|
||||
* For reading and writing Jpeg files.
|
||||
*/
|
||||
|
@ -24,9 +24,18 @@
|
||||
#include <linux/videodev2.h>
|
||||
|
||||
#ifdef HAVE_JPEG
|
||||
// jconfig.h overrides our INLINE definition.
|
||||
#ifdef __GNUC__
|
||||
#pragma push_macro("INLINE")
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
#include <jpeglib.h>
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma pop_macro("INLINE")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
class WebcamVideoV4L;
|
||||
|
Loading…
x
Reference in New Issue
Block a user