diff --git a/src/xinit.c b/src/xinit.c index 2380c9a0..85955ae1 100644 --- a/src/xinit.c +++ b/src/xinit.c @@ -767,12 +767,13 @@ void set_clip_mask(int what) #endif } } - +#ifdef __unix__ /* moved here to avoid Xorg-specific calls in move.c */ int pending_events(void) { return XPending(display); } +#endif void toggle_fullscreen(const char *topwin) { diff --git a/src/xschem.h b/src/xschem.h index 69d4b776..958ec499 100644 --- a/src/xschem.h +++ b/src/xschem.h @@ -1230,7 +1230,9 @@ extern void update_symbol(const char *result, int x); extern void tclexit(ClientData s); extern int build_colors(double dim, double dim_bg); /* reparse the TCL 'colors' list and reassign colors 20171113 */ extern void set_clip_mask(int what); +#ifdef __unix__ extern int pending_events(void); +#endif extern void drill_hilight(int mode); extern void get_square(double x, double y, int *xx, int *yy); extern void del_wire_table(void); diff --git a/xschem_library/pcb/pcb_voltage_protection_embed.sch b/xschem_library/pcb/pcb_voltage_protection_embed.sch index 390d124d..4916f3f6 100644 --- a/xschem_library/pcb/pcb_voltage_protection_embed.sch +++ b/xschem_library/pcb/pcb_voltage_protection_embed.sch @@ -517,7 +517,7 @@ url="https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=2ahUKEw v {xschem version=3.0.0 file_version=1.2} G {type=pmos format="@spiceprefix@name @pinlist @model @extra m=@m" -verilog_format="@symname #@del @name ( @@d , @@s , @@f );" +verilog_format="@symname #@del @name ( @@d , @@s , @@g );" tedax_format="footprint @name @footprint value @name @value