Skip to content

Commit

Permalink
Fixed: Compile errors about C++/C linkage
Browse files Browse the repository at this point in the history
Never include headers inside an extern "C" block. Some of the headers may
contain C++ code and that should usually not go in extern "C".
  • Loading branch information
skyjake committed Nov 14, 2012
1 parent 1972e76 commit 088d186
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions doomsday/engine/include/gl/sys_opengl.h
Expand Up @@ -73,16 +73,14 @@
# define GL_OPERAND3_ALPHA_NV 0x859B
#endif

#include <string.h>
#include "gl_deferredapi.h"
#include "ui/window.h"

#ifdef __cplusplus
extern "C" {
#endif

#include "gl_deferredapi.h"

#include <string.h>

#include "ui/window.h"

/**
* Configure available features
* \todo Move out of this header.
Expand Down

0 comments on commit 088d186

Please sign in to comment.