mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
tests: Fix a typo in the constructor test
There is no `G_HAS_DESTRUCTORS` `#define` and there never has been: the presence of destructors is indicated by `G_HAS_CONSTRUCTORS` (one is never supported without the other). Spotted by `-Wundef`. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
@@ -215,7 +215,7 @@ test_lib (gconstpointer data)
|
||||
/* Destructors */
|
||||
unload_library ();
|
||||
|
||||
#if G_HAS_DESTRUCTORS
|
||||
#if G_HAS_CONSTRUCTORS
|
||||
/* Destructors in dynamically-loaded libraries do not
|
||||
* necessarily run on dlclose. On some systems dlclose
|
||||
* is effectively a no-op (e.g with the Musl LibC) and
|
||||
|
Reference in New Issue
Block a user