The purpose of this file is to convert various compiler defines into a single define for each platform. This is ONLY to be used when feature defines will not work.

This commit is contained in:
cls%seawood.org 1998-11-11 18:59:44 +00:00
Родитель 8d5f9c4b4d
Коммит 4949087b83
1 изменённых файлов: 35 добавлений и 0 удалений

35
include/platform.h Normal file
Просмотреть файл

@ -0,0 +1,35 @@
/*
* The contents of this file are subject to the Mozilla Public License
* Version 1.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License
* at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and
* limitations under the License.
*
* The Original Code is this file as it appears in the Mozilla source tree.
*
* The Initial Developer of this code under the MPL is Christopher
* Seawood, <cls@seawood.org>. Portions created by Christopher Seawood
* are Copyright (C) 1998 Christopher Seawood. All Rights Reserved.
*/
/* The purpose of this file is to convert various compiler defines into
* a single define for each platform. This will allow developers to
* continue to use -Dplatform WHERE NECESSARY instead of learning each
* set of compiler defines.
*/
#ifdef __sun
#ifdef __svr4__
#define SOLARIS 1
#else
#define SUNOS4 1
#endif /* __svr4__ */
#endif /* __sun */
#ifdef linux
#define LINUX 1
#endif /* linux */