ICU-8908 #error if U_COMMON_IMPLEMENTATION, etc isnt set

X-SVN-Rev: 30876
This commit is contained in:
Steven R. Loomis 2011-10-26 23:02:14 +00:00
parent 2dc5656d64
commit de16c44aa9
5 changed files with 25 additions and 3 deletions

View File

@ -61,6 +61,11 @@
#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
/*

View 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.
*
******************************************************************************
@ -22,6 +22,10 @@
#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:
*

View 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. *
*******************************************************************************
*
@ -23,6 +23,10 @@
#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

View 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. *
* *
******************************************************************************
@ -19,6 +19,11 @@
#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"

View File

@ -22,6 +22,10 @@
#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