mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-22 22:00:49 +00:00
Regenerated
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@13212 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
143d4d0140
commit
1cc67cd1f5
1 changed files with 10 additions and 10 deletions
20
INSTALL
20
INSTALL
|
@ -102,16 +102,16 @@ Warnings for deprecated #import
|
|||
-------------------------------
|
||||
|
||||
The #import directive, often found in legacy Objective-C code from
|
||||
the NeXTstep and OpenStep era (and more recently on code from the Apple
|
||||
MacOS X Cocoa environment), is deprecated. You should use #include
|
||||
instead whenever possible, and even if you use #import, you should
|
||||
protect all your headers against multiple inclusions. The GCC compiler
|
||||
automatically emits a warning whenever you use #import. For political
|
||||
and historical reasons (basically for fear of annoying legacy and MacOS
|
||||
X users), these warnings are disabled by gnustep-make. But if you are
|
||||
not a legacy (/MacOS X) user and/or you want to make sure your
|
||||
Objective-C code is not using any deprecated feature, you should
|
||||
configure gnustep-make with -disable-import:
|
||||
the NeXTstep era - and more recently on code from the Apple MacOS X
|
||||
Cocoa environment - is deprecated. You should use #include instead
|
||||
whenever possible, and even if you use #import, you should protect all
|
||||
your headers against multiple inclusions. The GCC compiler
|
||||
automatically emits a warning whenever you use #import. Because many
|
||||
users are annoyed by these warnings and want to use #import (usually for
|
||||
compatibility with other systems), gnustep-make automatically disables
|
||||
these warnings. But if you want to make sure your Objective-C code is
|
||||
not using any deprecated feature, you can configure gnustep-make with
|
||||
-disable-import:
|
||||
./configure --disable-import
|
||||
If you are a legacy or MacOS X user, and wonder why #import is
|
||||
deprecated, please search the web and the GCC and GNUstep mailing list
|
||||
|
|
Loading…
Reference in a new issue