gecko-dev/include/platform.h

36 lines
1.2 KiB
C

/*
* 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 */