Skip to content

Commit 4f9d633

Browse files
authored
LOADER X11: enable compilation via C++ (#368)
1 parent 3b9c6bf commit 4f9d633

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

loaders/x11/x11_microgl.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
3535
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
3636
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3737
*/
38+
#ifdef __cplusplus
39+
extern "C" {
40+
#if 0
41+
} // keep emacs indent happy
42+
#endif
43+
#endif
44+
3845
// simple X11 loader
3946
#include <stdio.h>
4047
#include <stdlib.h>
@@ -516,4 +523,8 @@ void microgl_getCopiedString(char** str) {
516523
*str = copiedString;
517524
}
518525

526+
#ifdef __cplusplus
527+
}
528+
#endif
529+
519530
// eof

0 commit comments

Comments
 (0)