Make it possible to use reasonable-synth in production

This allows to disable the xmass easter-egg for those who
don't celebrate x-mas.
This commit is contained in:
Robin Gareus 2020-01-17 22:41:01 +01:00
parent 0ad9c3de1a
commit 33f71677eb
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -100,6 +100,7 @@ instantiate (const LV2_Descriptor* descriptor,
synth_init(self->synth, rate);
#ifndef PLATFORM_WINDOWS // easter egg is for sane platforms with native support for localtime_r only
if (!getenv("HEATHEN")) {
struct tm date;
time_t now;
time(&now);
@ -108,6 +109,7 @@ instantiate (const LV2_Descriptor* descriptor,
printf("reasonable synth.lv2 says: happy holidays!\n");
self->xmas = true;
}
}
#endif
return (LV2_Handle)self;