summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2018-07-11 16:26:26 +0000
committerMatthieu Herrb <matthieu@herrb.eu>2020-07-14 15:52:40 +0200
commite90dea2537d5d3f74df6cfaee4d4aac8328e08a6 (patch)
tree00bcb429028d07bfd62299c2f032b3f771d6fe0b
parentfb8f74e50aee6a0e0126600081d1bd835721cfe6 (diff)
Less ifdef cruft.
-rw-r--r--greeter/Login.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/greeter/Login.c b/greeter/Login.c
index 252ea94..49395cd 100644
--- a/greeter/Login.c
+++ b/greeter/Login.c
@@ -84,18 +84,9 @@ from The Open Group.
#include <X11/extensions/Xrender.h>
-#ifndef DEBUG
-# define XDM_ASSERT(a) /* do nothing */
-#else
-# if defined(__STDC__) && __STDC_VERSION__ - 0 >= 199901L
-# define XDM_ASSERT(a) if (!(a)) { \
+#define XDM_ASSERT(a) if (!(a)) { \
Debug("Assertion failed in %s() at file %s line %d\n", \
__func__, __FILE__, __LINE__); }
-# else
-# define XDM_ASSERT(a) if (!(a)) { \
- Debug("Assertion failed at file %s line %d\n", __FILE__, __LINE__); }
-# endif
-#endif
static void RedrawFail (LoginWidget w);
static void ResetLogin (LoginWidget w);