1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/harfbuzz/src/hb-warning.cc Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,66 @@ 1.4 +/* 1.5 + * Copyright © 2012 Google, Inc. 1.6 + * 1.7 + * This is part of HarfBuzz, a text shaping library. 1.8 + * 1.9 + * Permission is hereby granted, without written agreement and without 1.10 + * license or royalty fees, to use, copy, modify, and distribute this 1.11 + * software and its documentation for any purpose, provided that the 1.12 + * above copyright notice and the following two paragraphs appear in 1.13 + * all copies of this software. 1.14 + * 1.15 + * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR 1.16 + * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES 1.17 + * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN 1.18 + * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 1.19 + * DAMAGE. 1.20 + * 1.21 + * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, 1.22 + * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 1.23 + * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS 1.24 + * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO 1.25 + * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 1.26 + * 1.27 + * Google Author(s): Behdad Esfahbod 1.28 + */ 1.29 + 1.30 +#include "hb-atomic-private.hh" 1.31 +#include "hb-mutex-private.hh" 1.32 + 1.33 + 1.34 +#if defined(HB_ATOMIC_INT_NIL) 1.35 +#ifdef _MSC_VER 1.36 +#pragma message("Could not find any system to define atomic_int macros, library may NOT be thread-safe") 1.37 +#else 1.38 +#warning "Could not find any system to define atomic_int macros, library may NOT be thread-safe" 1.39 +#endif 1.40 +#endif 1.41 + 1.42 +#if defined(HB_MUTEX_IMPL_NIL) 1.43 +#ifdef _MSC_VER 1.44 +#pragma message("Could not find any system to define mutex macros, library may NOT be thread-safe") 1.45 +#else 1.46 +#warning "Could not find any system to define mutex macros, library may NOT be thread-safe" 1.47 +#endif 1.48 +#endif 1.49 + 1.50 +#if defined(HB_ATOMIC_INT_NIL) || defined(HB_MUTEX_IMPL_NIL) 1.51 +#ifdef _MSC_VER 1.52 +#pragma message("To suppress these warnings, define HB_NO_MT") 1.53 +#else 1.54 +#warning "To suppress these warnings, define HB_NO_MT" 1.55 +#endif 1.56 +#endif 1.57 + 1.58 + 1.59 +#include "hb-unicode-private.hh" 1.60 + 1.61 +#if !defined(HB_NO_UNICODE_FUNCS) && defined(HB_UNICODE_FUNCS_NIL) 1.62 +#ifdef _MSC_VER 1.63 +#pragma message("Could not find any Unicode functions implementation, you have to provide your own") 1.64 +#pragma message("To suppress this warnings, define HB_NO_UNICODE_FUNCS") 1.65 +#else 1.66 +#warning "Could not find any Unicode functions implementation, you have to provide your own" 1.67 +#warning "To suppress this warning, define HB_NO_UNICODE_FUNCS" 1.68 +#endif 1.69 +#endif