Skip to content

Commit

Permalink
Move includes of unicode/utypes.h before config switch checks
Browse files Browse the repository at this point in the history
  • Loading branch information
catamorphism committed Mar 27, 2024
1 parent 3b9c0b4 commit d744f2c
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 3 deletions.
2 changes: 2 additions & 0 deletions icu4c/source/i18n/messageformat2_allocation.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// © 2024 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html

#include "unicode/utypes.h"

#ifndef U_HIDE_DEPRECATED_API

#ifndef MESSAGEFORMAT2_UTILS_H
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/i18n/messageformat2_cached_formatters.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// © 2024 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html

#include "unicode/utypes.h"

#ifndef U_HIDE_DEPRECATED_API

#ifndef MESSAGEFORMAT2_CACHED_FORMATTERS_H
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/i18n/messageformat2_checker.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// © 2024 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html

#include "unicode/utypes.h"

#ifndef U_HIDE_DEPRECATED_API

#ifndef MESSAGEFORMAT_CHECKER_H
Expand Down
3 changes: 2 additions & 1 deletion icu4c/source/i18n/messageformat2_errors.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// © 2024 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html

#include "unicode/utypes.h"

#ifndef U_HIDE_DEPRECATED_API

#ifndef MESSAGEFORMAT2_ERRORS_H
Expand All @@ -18,7 +20,6 @@
#if !UCONFIG_NO_MF2

#include "unicode/messageformat2_data_model_names.h"
#include "unicode/utypes.h"
#include "unicode/unistr.h"

#include "uvector.h"
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/i18n/messageformat2_evaluation.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// © 2024 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html

#include "unicode/utypes.h"

#ifndef U_HIDE_DEPRECATED_API

#ifndef MESSAGEFORMAT2_EVALUATION_H
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/i18n/messageformat2_function_registry_internal.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// © 2024 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html

#include "unicode/utypes.h"

#ifndef U_HIDE_DEPRECATED_API

#ifndef MESSAGEFORMAT2_FUNCTION_REGISTRY_INTERNAL_H
Expand Down
4 changes: 2 additions & 2 deletions icu4c/source/i18n/messageformat2_macros.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// © 2024 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html

#include "unicode/utypes.h"

#ifndef U_HIDE_DEPRECATED_API

#ifndef MESSAGEFORMAT2_MACROS_H
#define MESSAGEFORMAT2_MACROS_H

#include "unicode/utypes.h"

#if U_SHOW_CPLUSPLUS_API

#if !UCONFIG_NO_FORMATTING
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/i18n/messageformat2_parser.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// © 2024 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html

#include "unicode/utypes.h"

#ifndef U_HIDE_DEPRECATED_API

#ifndef MESSAGEFORMAT_PARSER_H
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/i18n/messageformat2_serializer.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// © 2024 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html

#include "unicode/utypes.h"

#ifndef U_HIDE_DEPRECATED_API

#ifndef MESSAGEFORMAT_SERIALIZER_H
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/test/intltest/messageformat2test_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#ifndef _TESTMESSAGEFORMAT2_UTILS
#define _TESTMESSAGEFORMAT2_UTILS

#include "unicode/utypes.h"

#if !UCONFIG_NO_FORMATTING

#if !UCONFIG_NO_MF2
Expand Down

0 comments on commit d744f2c

Please sign in to comment.