1998-11-11 18:59:44 +00:00
|
|
|
/*
|
1999-11-06 03:40:37 +00:00
|
|
|
* The contents of this file are subject to the Mozilla Public
|
|
|
|
* License Version 1.1 (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.
|
|
|
|
*
|
1998-11-11 18:59:44 +00:00
|
|
|
* The Original Code is this file as it appears in the Mozilla source tree.
|
|
|
|
*
|
1999-11-06 03:40:37 +00:00
|
|
|
* The Initial Developer of the Original Code is Christopher
|
|
|
|
* Seawood. Portions created by Christopher Seawood are
|
|
|
|
* Copyright (C) 1998 Christopher Seawood. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
1998-11-11 18:59:44 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* 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.
|
|
|
|
*/
|
1998-11-18 18:28:27 +00:00
|
|
|
#ifndef _platform_h
|
|
|
|
#define _platform_h
|
1998-11-11 18:59:44 +00:00
|
|
|
|
|
|
|
#ifdef __sun
|
1998-11-18 18:28:27 +00:00
|
|
|
#ifdef __SVR4
|
|
|
|
#undef SOLARIS
|
1998-11-11 18:59:44 +00:00
|
|
|
#define SOLARIS 1
|
|
|
|
#else
|
1998-11-18 18:28:27 +00:00
|
|
|
#undef SUNOS4
|
1998-11-11 18:59:44 +00:00
|
|
|
#define SUNOS4 1
|
1998-11-18 18:28:27 +00:00
|
|
|
#endif /* __SVR4 */
|
1998-11-11 18:59:44 +00:00
|
|
|
#endif /* __sun */
|
|
|
|
|
|
|
|
#ifdef linux
|
1998-12-15 03:21:23 +00:00
|
|
|
#undef LINUX
|
1998-11-11 18:59:44 +00:00
|
|
|
#define LINUX 1
|
|
|
|
#endif /* linux */
|
1998-11-18 18:28:27 +00:00
|
|
|
|
|
|
|
#endif /* _platform_h */
|