Is there a standard idiom for distinguishing when running GtkD code on Xorg from when running on Wayland?

I am sure there must be an example somewhere in the GtkD demos and/or the Web, but I am failing to find it.