X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2FETL%2Fhandle;h=76508bce81a4dda48a13b12f51766a4b06a2615f;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=9c3347e6382025ee9bfea66dacaae280ffb501c6;hpb=abfa66b593515585b9889b876f219178ee9da5ff;p=synfig.git diff --git a/ETL/trunk/ETL/handle b/ETL/trunk/ETL/handle index 9c3347e..76508bc 100644 --- a/ETL/trunk/ETL/handle +++ b/ETL/trunk/ETL/handle @@ -6,6 +6,7 @@ ** ** \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 @@ -22,13 +23,25 @@ /* === 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 =============================================================== */