Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 13501cd

Browse files
author
Marina Polyakova
committed
ICU: do not include ICU headers for definitions only: Windows support
+ code cleanup
1 parent 3b66ddc commit 13501cd

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/bin/pg_upgrade/version.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
#include "pg_upgrade.h"
1313

14+
#if defined(WIN32) && defined(USE_ICU)
15+
#include <unicode/uloc.h>
16+
#endif
17+
1418
#include "catalog/pg_class.h"
1519
#include "catalog/pg_collation.h"
1620
#include "fe_utils/string_utils.h"

src/port/chklocale.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
#include <langinfo.h>
2424
#endif
2525

26-
#include "catalog/pg_collation.h"
27-
#include "common/pg_collation_fn_common.h"
28-
#include "mb/pg_wchar.h"
29-
3026
#ifdef USE_ICU
3127
#include <unicode/ucol.h>
3228
#endif
3329

30+
#include "catalog/pg_collation.h"
31+
#include "common/pg_collation_fn_common.h"
32+
#include "mb/pg_wchar.h"
33+
3434
/*
3535
* In backend, we will use palloc/pfree. In frontend, use malloc/free.
3636
*/

0 commit comments

Comments
 (0)