Skip to content

Commit

Permalink
Merge pull request #34 from colin-m-fletcher/master
Browse files Browse the repository at this point in the history
avoid global namespace symbol conflicts and possible double free (again)
  • Loading branch information
swh authored Jul 6, 2016
2 parents 13227c6 + 178c69e commit 110374f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions makestub.pl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
\#ifdef WIN32
\#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
int bIsFirstTime = 1;
void __attribute__((constructor)) swh_init(); // forward declaration
static void __attribute__((constructor)) swh_init(); // forward declaration
\#else
\#define _WINDOWS_DLL_EXPORT_
\#endif
Expand Down Expand Up @@ -139,7 +139,7 @@
print $code;
# Headers for init section
print <<EOB;
void __attribute__((constructor)) swh_init() {
static void __attribute__((constructor)) swh_init() {
char **port_names;
LADSPA_PortDescriptor *port_descriptors;
LADSPA_PortRangeHint *port_range_hints;
Expand All @@ -157,7 +157,7 @@

print <<EOB;
void __attribute__((destructor)) swh_fini() {
static void __attribute__((destructor)) swh_fini() {
$fini_code
}
EOB
Expand Down

0 comments on commit 110374f

Please sign in to comment.