• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

The MinGW.org Installation Manager Tool


コミットメタ情報

リビジョン407f363791d735213699af2dfd585048af90443f (tree)
日時2013-05-31 21:26:50
作者Keith Marshall <keithmarshall@user...>
コミッターKeith Marshall

ログメッセージ

Avoid a potential macro definition conflict.

変更サマリ

差分

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
1+2013-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2+
3+ Avoid a potential macro definition conflict.
4+
5+ * src/pkgbase.h (strcasecmp) [__MINGW32__]: Use string.h definition.
6+
17 2013-05-15 Keith Marshall <keithmarshall@users.sourceforge.net>
28
39 Streamline build-time dependency tracking procedures.
--- a/src/pkgbase.h
+++ b/src/pkgbase.h
@@ -527,10 +527,14 @@ bool safe_strcmp( strcmp_function strcmp, const char *value, const char *proto )
527527 # ifndef CASE_INSENSITIVE_FILESYSTEM
528528 # define CASE_INSENSITIVE_FILESYSTEM 1
529529 # endif
530+# ifndef __MINGW32__
530531 /* The preferred name for MS-Windows' case insensitive string
531- * matching function, equivalent to POSIX strcasecmp().
532+ * matching function, equivalent to POSIX strcasecmp(); MinGW's
533+ * string.h will have established this mapping already, so we
534+ * don't introduce a (possibly incompatible) redefinition.
532535 */
533-# define strcasecmp stricmp
536+# define strcasecmp _stricmp
537+# endif
534538 #else
535539 /* On other systems, we prefer to adopt case sensitive matching
536540 * strategies for subsystem and file names.