From 3d26c1346b819aca7d4073360ce409c1f33aa2f3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 14 Sep 2016 21:28:58 +0800 Subject: Fix puglInitInternals prototype --- pugl/pugl_internal.h | 2 +- pugl/pugl_osx.m | 2 +- pugl/pugl_win.cpp | 2 +- pugl/pugl_x11.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pugl/pugl_internal.h b/pugl/pugl_internal.h index d4ba126..aa55c6d 100644 --- a/pugl/pugl_internal.h +++ b/pugl/pugl_internal.h @@ -72,7 +72,7 @@ struct PuglViewImpl { uint32_t event_timestamp_ms; }; -PuglInternals* puglInitInternals(); +PuglInternals* puglInitInternals(void); PuglView* puglInit(int* pargc, char** argv) diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m index 72e4da9..f495811 100644 --- a/pugl/pugl_osx.m +++ b/pugl/pugl_osx.m @@ -452,7 +452,7 @@ getModifiers(PuglView* view, NSEvent* ev) @end PuglInternals* -puglInitInternals() +puglInitInternals(void) { return (PuglInternals*)calloc(1, sizeof(PuglInternals)); } diff --git a/pugl/pugl_win.cpp b/pugl/pugl_win.cpp index eb87197..70bf98c 100644 --- a/pugl/pugl_win.cpp +++ b/pugl/pugl_win.cpp @@ -77,7 +77,7 @@ puglInit() } PuglInternals* -puglInitInternals() +puglInitInternals(void) { return (PuglInternals*)calloc(1, sizeof(PuglInternals)); } diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c index f91aa24..4e7b447 100644 --- a/pugl/pugl_x11.c +++ b/pugl/pugl_x11.c @@ -100,7 +100,7 @@ struct PuglInternalsImpl { }; PuglInternals* -puglInitInternals() +puglInitInternals(void) { return (PuglInternals*)calloc(1, sizeof(PuglInternals)); } -- cgit v1.2.1