Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6d12c7d

Browse files
committed
Properly identify mingw as a win32 platform needing different diff
options to deal with strange line endings.
1 parentbd2cb9a commit6d12c7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/interfaces/ecpg/test/pg_regress_ecpg.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
1212
* Portions Copyright (c) 1994, Regents of the University of California
1313
*
14-
* $PostgreSQL: pgsql/src/interfaces/ecpg/test/pg_regress_ecpg.c,v 1.1 2007/06/12 11:07:30 mha Exp $
14+
* $PostgreSQL: pgsql/src/interfaces/ecpg/test/pg_regress_ecpg.c,v 1.2 2007/06/14 13:10:11 mha Exp $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
@@ -159,11 +159,11 @@ static void
159159
ecpg_init(void)
160160
{
161161
/* no reason to set -w for ecpg checks, except for when on windows */
162-
if (strstr(host_platform,"-win32"))
162+
if (strstr(host_platform,"-win32")||strstr(host_platform,"-mingw32"))
163163
basic_diff_opts="-w";
164164
else
165165
basic_diff_opts="";
166-
if (strstr(host_platform,"-win32"))
166+
if (strstr(host_platform,"-win32")||strstr(host_platform,"-mingw32"))
167167
pretty_diff_opts="-C3 -w";
168168
else
169169
pretty_diff_opts="-C3";

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp