CodeCleanup: move include statements before extern "C"

Mistake on recent changes that would fail when used in CPP.
This commit is contained in:
Jeroen Bakker
2020-03-06 12:31:38 +01:00
parent 24a37b3c03
commit 98d562af52
2 changed files with 9 additions and 8 deletions
@@ -24,16 +24,16 @@
* \ingroup bke
*/
#ifdef __cplusplus
extern "C" {
#endif
#include "DNA_object_enums.h"
#include "DNA_view3d_types.h"
#include "IMB_imbuf_types.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct ImBuf *(*SequencerDrawView)(struct Depsgraph *depsgraph,
struct Scene *scene,
struct View3DShading *shading_override,
@@ -24,6 +24,11 @@
#ifndef __ED_VIEW3D_OFFSCREEN_H__
#define __ED_VIEW3D_OFFSCREEN_H__
#include "DNA_view3d_types.h"
#include "DNA_object_enums.h"
#include "IMB_imbuf_types.h"
#ifdef __cplusplus
extern "C" {
#endif
@@ -37,10 +42,6 @@ struct GPUOffScreen;
struct GPUViewport;
struct View3DShading;
#include "DNA_view3d_types.h"
#include "DNA_object_enums.h"
#include "IMB_imbuf_types.h"
void ED_view3d_draw_offscreen(struct Depsgraph *depsgraph,
struct Scene *scene,
eDrawType drawtype,