]> granicus.if.org Git - icu/commitdiff
ICU-8908 #error if U_COMMON_IMPLEMENTATION, etc isnt set
authorSteven R. Loomis <srl@icu-project.org>
Wed, 26 Oct 2011 23:02:14 +0000 (23:02 +0000)
committerSteven R. Loomis <srl@icu-project.org>
Wed, 26 Oct 2011 23:02:14 +0000 (23:02 +0000)
X-SVN-Rev: 30876

icu4c/source/common/putil.cpp
icu4c/source/common/ubidiln.c
icu4c/source/i18n/format.cpp
icu4c/source/io/ucln_io.c
icu4c/source/tools/toolutil/toolutil.cpp

index dcb48e21e3c12668006829afc76cf3921c2b98d7..ae39d532527a71f22b01cf1ba9b0602930013758 100644 (file)
 #include <locale.h>
 #include <float.h>
 
+#ifndef U_COMMON_IMPLEMENTATION
+#error U_COMMON_IMPLEMENTATION not set - must be set for all ICU source files in common/ - see http://userguide.icu-project.org/howtouseicu
+#endif
+
+
 /* include system headers */
 #if U_PLATFORM_USES_ONLY_WIN32_API
     /*
index 66bcefcc365e3470c2729c52a9dcc489b89b050f..518a54d80abb57812925e70181fc431e67919eb3 100644 (file)
@@ -1,7 +1,7 @@
 /*
 ******************************************************************************
 *
-*   Copyright (C) 1999-2010, International Business Machines
+*   Copyright (C) 1999-2011, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *
 ******************************************************************************
 #include "ubidiimp.h"
 #include "uassert.h"
 
+#ifndef U_COMMON_IMPLEMENTATION
+#error U_COMMON_IMPLEMENTATION not set - must be set for all ICU source files in common/ - see http://userguide.icu-project.org/howtouseicu
+#endif
+
 /*
  * General remarks about the functions in this file:
  *
index 701b489fff7f21b4a013c684c4ab2b6fb9a57111..d80a44da7a806dcd4c22a069ff6dc3ede8bd3fff 100644 (file)
@@ -1,6 +1,6 @@
 /*
 *******************************************************************************
-* Copyright (C) 1997-2010, International Business Machines Corporation and    *
+* Copyright (C) 1997-2011, International Business Machines Corporation and    *
 * others. All Rights Reserved.                                                *
 *******************************************************************************
 *
 
 #include "unicode/utypes.h"
 
+#ifndef U_I18N_IMPLEMENTATION
+#error U_I18N_IMPLEMENTATION not set - must be set for all ICU source files in i18n/ - see http://userguide.icu-project.org/howtouseicu
+#endif
+
 /*
  * Dummy code:
  * If all modules in the I18N library are switched off, then there are no
index 05c00b9ea10cfbdb74b79c35e5cfabb94b19ffb6..791a285c11b236754eb101a87522d23b49099eb1 100644 (file)
@@ -1,7 +1,7 @@
 /*
 ******************************************************************************
 *                                                                            *
-* Copyright (C) 2001-2009, International Business Machines                   *
+* Copyright (C) 2001-2011, International Business Machines                   *
 *                Corporation and others. All Rights Reserved.                *
 *                                                                            *
 ******************************************************************************
 #include "umutex.h"
 #include "uassert.h"
 
+#ifndef U_IO_IMPLEMENTATION
+#error U_IO_IMPLEMENTATION not set - must be set for all ICU source files in io/ - see http://userguide.icu-project.org/howtouseicu
+#endif
+
+
 /**  Auto-client */
 #define UCLN_TYPE UCLN_IO
 #include "ucln_imp.h"
index bef774f4be41a9f6802738788043b3a96fa97b1b..b42044ed7fe984ef591305ef0d7a3dd4b71c428b 100644 (file)
 #include <sys/stat.h>
 #include "unicode/utypes.h"
 
+#ifndef U_TOOLUTIL_IMPLEMENTATION
+#error U_TOOLUTIL_IMPLEMENTATION not set - must be set for all ICU source files in common/ - see http://userguide.icu-project.org/howtouseicu
+#endif
+
 #if U_PLATFORM_USES_ONLY_WIN32_API
 #   define VC_EXTRALEAN
 #   define WIN32_LEAN_AND_MEAN