@@ -217,7 +217,7 @@ static t_symbol* global_gensym(const char* s)
217217// ag: Renamed to pdlua_datadir since we also need this in vanilla when
218218// setting up Lua's package.path.
219219static char pdlua_datadir [PATH_MAX + 1 ];
220- #if PLUGDATA
220+ #ifdef PLUGDATA
221221// Hook to inform plugdata which class names are lua objects
222222static void (* plugdata_register_class )(const char * );
223223#endif
@@ -1157,7 +1157,7 @@ static void (*nw_gui_vmess)(const char *sel, char *fmt, ...) = NULL;
11571157/* plugdata support. Similarly, if we're running inside plugdata, we can send GUI messages with plugdata_forward_message
11581158 This allows opening an in-gui text editor instead of opening another app
11591159 */
1160- #if PLUGDATA
1160+ #ifdef PLUGDATA
11611161void plugdata_forward_message (int type , void * x , t_symbol * s , int argc , t_atom * argv );
11621162#endif
11631163/** a handler for the open item in the right-click menu (mrpeach 20111025) */
@@ -1195,7 +1195,7 @@ static void pdlua_menu_open(t_pdlua *o)
11951195 lua_pop (__L (), 2 ); /* pop name, global "pd"*/
11961196 return ;
11971197 }
1198- #if PLUGDATA
1198+ #ifdef PLUGDATA
11991199 if (!* class -> c_externdir -> s_name )
12001200 path = pdlua_datadir ;
12011201 else
@@ -1229,7 +1229,7 @@ static void pdlua_menu_open(t_pdlua *o)
12291229#else
12301230 logpost (NULL , 3 , "Opening %s for editing" , pathname );
12311231#endif
1232- #if PLUGDATA
1232+ #ifdef PLUGDATA
12331233 t_atom arg ;
12341234 SETSYMBOL (& arg , gensym (pathname ));
12351235 plugdata_forward_message (0 , o , gensym ("open_textfile" ), 1 , & arg );
@@ -1564,7 +1564,7 @@ static int pdlua_class_new(lua_State *L)
15641564 }
15651565#pragma GCC diagnostic pop
15661566 // Let plugdata know this class is a lua object
1567- #if PLUGDATA
1567+ #ifdef PLUGDATA
15681568 plugdata_register_class (name );
15691569 plugdata_register_class (name_gfx );
15701570#endif
@@ -3335,7 +3335,7 @@ void pdlua_setup(void)
33353335 snprintf (luaversionStr , MAXPDSTRING , "Using lua version %d.%d" , lvm , lvl );
33363336#endif
33373337
3338- #if PLUGDATA
3338+ #ifdef PLUGDATA
33393339 plugdata_register_class = register_class_callback ;
33403340
33413341#if LUA_USE_JIT
@@ -3348,7 +3348,7 @@ void pdlua_setup(void)
33483348 post (luaversionStr );
33493349
33503350// multichannel handling copied from https://github.com/Spacechild1/vstplugin/blob/3f0ed8a800ea238bf204a2ead940b2d1324ac909/pd/src/vstplugin~.cpp#L4122-L4136
3351- #if PLUGDATA
3351+ #ifdef PLUGDATA
33523352 g_signal_setmultiout = & signal_setmultiout ;
33533353#else
33543354#ifdef _WIN32
0 commit comments