Skip to content

Commit

Permalink
Fix the build with -fno-common. (#105)
Browse files Browse the repository at this point in the history
Fix the build with -fno-common.
  • Loading branch information
jamesjer authored Mar 18, 2020
1 parent b27e4c2 commit a665ac7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
LablGTK changes log

2020.01.24 [Jerry James]
* Fix the build with -fno-common, the default for GCC 10

## In Lablgtk-3.1.0

2020.01.23 [Jacques]
Expand Down
2 changes: 2 additions & 0 deletions src/ml_gdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
#include "gdk_tags.h"


lookup_info *ml_table_extension_events;

CAMLprim void ml_raise_gdk (const char *errmsg)
{
static const value * exn = NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/ml_gdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ CAMLexport value Val_GdkEvent (GdkEvent *);
CAMLexport int OptFlags_GdkModifier_val (value);
CAMLexport int Flags_GdkModifier_val (value);
CAMLexport int Flags_Event_mask_val (value);
CAMLexport lookup_info *ml_table_extension_events;
CAMLextern lookup_info *ml_table_extension_events;
#define Extension_events_val(key) ml_lookup_to_c(ml_table_extension_events,key)

#define GdkDragContext_val(val) check_cast(GDK_DRAG_CONTEXT,val)
Expand Down

0 comments on commit a665ac7

Please sign in to comment.