about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/LYexit.h
diff options
context:
space:
mode:
Diffstat (limited to 'WWW/Library/Implementation/LYexit.h')
-rw-r--r--WWW/Library/Implementation/LYexit.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/WWW/Library/Implementation/LYexit.h b/WWW/Library/Implementation/LYexit.h
index 8e217776..b8e7cd0c 100644
--- a/WWW/Library/Implementation/LYexit.h
+++ b/WWW/Library/Implementation/LYexit.h
@@ -29,8 +29,13 @@
 #endif /* _WINDOWS */
 
 #define exit LYexit
+
+#ifdef LY_FIND_LEAKS
 #define atexit LYatexit
 #define ATEXITSIZE 40
+#else
+#define atexit(func) /*nothing*/
+#endif
 
 /*
  *	Data structures