summaryrefslogtreecommitdiff
path: root/src/cairo-os2-surface.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2008-09-20 18:17:19 -0400
committerBehdad Esfahbod <behdad@behdad.org>2008-09-20 18:26:27 -0400
commit45609d840078288bf0fc096ee8bac642fed6674f (patch)
treecb6d2719f3d50d937b4ea087a71e87958c695769 /src/cairo-os2-surface.c
parent9c2732395987a29ee764c575cce2b13e94152151 (diff)
Add cairo-system.c for platform system-specific code
This is where DLL initialization/finalization should be done for example. Moved the one for win32. For OS/2 just left a comment as the code needs more work. This change simplifies building shared and static libraries in the win32 makefiles.
Diffstat (limited to 'src/cairo-os2-surface.c')
-rw-r--r--src/cairo-os2-surface.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cairo-os2-surface.c b/src/cairo-os2-surface.c
index 80a1cd97..c55d6917 100644
--- a/src/cairo-os2-surface.c
+++ b/src/cairo-os2-surface.c
@@ -232,6 +232,12 @@ void _buffer_free (void *buffer)
#endif
}
+/* XXX
+ * The cairo_os2_init/fini() functions should be removed and the LibMain
+ * code moved to cairo-system.c. It should also call
+ * cairo_debug_reset_static_data() instead of duplicating its logic...
+ */
+
#ifdef BUILD_CAIRO_DLL
/* The main DLL entry for DLL initialization and uninitialization */
/* Only include this code if we're about to build a DLL. */