Revision: 73080
http://sourceforge.net/p/brlcad/code/73080
Author: brlcad
Date: 2019-05-17 13:25:52 +0000 (Fri, 17 May 2019)
Log Message:
-----------
no longer doing it the C-way so remove to avoid this getting abused/used later
Modified Paths:
--------------
brlcad/trunk/include/common.h
Modified: brlcad/trunk/include/common.h
===================================================================
--- brlcad/trunk/include/common.h 2019-05-17 13:23:41 UTC (rev 73079)
+++ brlcad/trunk/include/common.h 2019-05-17 13:25:52 UTC (rev 73080)
@@ -375,40 +375,6 @@
#endif
-/**
- * INITIALIZE provides a common mechanism for libraries needing to
- * define an initialization function to be run when the library is
- * loaded.
- */
-#ifdef INITIALIZE
-# undef INITIALIZE
-# warning "INITIALIZE unexpectedly defined. Ensure common.h is included
first."
-#endif
-
-#ifdef __cplusplus
-
-# define INITIALIZE(lib) \
-static void lib(void); \
-struct lib##_t_ { lib##_t_(void) { lib(); } }; static lib##_t_ lib##_; \
-static void lib(void)
-
-/* #elif defined(HAVE_WINDOWS_H) */
-
-/* # define INITIALIZE(lib) \ */
-/* \ */
-/* static void lib(void); \ */
-/* BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID nil) { lib();
return TRUE; } \ */
-/* static void lib(void) */
-
-#else
-
-/* # define INITIALIZE(lib) \ */
-/* static void lib(void) __attribute__((constructor)); \ */
-/* static void lib(void) */
-
-#endif
-
-
/* ActiveState Tcl doesn't include this catch in tclPlatDecls.h, so we
* have to add it for them
*/
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits