Revert modifications for Fedora compatibility due to stability problems.
[synfig.git] / ETL / trunk / ETL / handle
index 3e343fd..76508bc 100644 (file)
@@ -1,11 +1,12 @@
 // <handle> -*- C++ -*-
 /* === E T L =============================================================== */
 /*!    \file handle
-**     $Id: handle,v 1.1.1.1 2005/01/04 01:31:46 darco Exp $
+**     $Id$
 **     \brief Template Object Handle
 **
 **     \legal
 **     Copyright (c) 2002 Robert B. Quattlebaum Jr.
+**     Copyright (c) 2008 Chris Moore
 **
 **     This package is free software; you can redistribute it and/or
 **     modify it under the terms of the GNU General Public License as
 
 /* === S T A R T =========================================================== */
 
-#ifndef __HANDLE__
-#define __HANDLE__
+#ifndef __ETL__HANDLE__
+#define __ETL__HANDLE__
 
 /* === H E A D E R S ======================================================= */
 
 #include "etl_config.h"
 
+// include the next line in an attempt to increase stability
+// it seems to make things much *less* stable on MS Windows
+#ifndef _WIN32
+#ifdef HAVE_LIBPTHREAD
+#define ETL_LOCK_REFCOUNTS
+#endif
+#endif
+
+#ifdef ETL_LOCK_REFCOUNTS
+#  include "mutex"
+#endif
+
 #include "_handle.h"
 
 /* === E N D =============================================================== */