merge with master.
[ardour.git] / libs / plugins / reasonablesynth.lv2 / lv2.c
index 6b9c81d8dd06a65df303dcfc9acdfde0a5480d7e..87f930b3c4890d99df915de79326685d94148b2b 100644 (file)
@@ -100,7 +100,7 @@ instantiate(const LV2_Descriptor*     descriptor,
   self->synth = synth_alloc();
   synth_init(self->synth, rate);
 
-
+#ifndef PLATFORM_WINDOWS // easter egg is for sane platforms with native support for localtime_r only
   struct tm date;
   time_t now;
   time(&now);
@@ -109,6 +109,7 @@ instantiate(const LV2_Descriptor*     descriptor,
     printf("reasonable synth.lv2 says: happy holidays!\n");
     self->xmas = true;
   }
+#endif
 
   return (LV2_Handle)self;
 }
@@ -199,7 +200,11 @@ static const LV2_Descriptor descriptor = {
   extension_data
 };
 
-LV2_SYMBOL_EXPORT
+#if defined(COMPILER_MSVC)
+__declspec(dllexport)
+#else
+__attribute__ ((visibility ("default")))
+#endif
 const LV2_Descriptor*
 lv2_descriptor(uint32_t idx)
 {