Files
Mozilla/mozilla/calendar/modules/util/inc/jdefines.h
dmose%mozilla.org 630d8b77f1 updating license boilerplate
git-svn-id: svn://10.0.0.236/trunk@52521 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 06:13:48 +00:00

82 lines
1.9 KiB
C

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape 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/NPL/
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef _JULIAN_DEFINES_H
#define _JULIAN_DEFINES_H
#include "xp_mcom.h"
#include "nspr.h"
#ifdef PR_ASSERT
#undef PR_ASSERT
#endif
#define PR_ASSERT(a) assert(a)
/* create a XP_ACCESS call */
#ifdef JXP_ACCESS
#undef JXP_ACCESS
#endif
#define NOT_NULL(X) X
#define JBOOL XP_Bool
#if defined(XP_WIN32)
#define JSTRING CString
#define JCOLOR long
#define JXP_ACCESS _access
#elif defined(XP_UNIX)
#define stricmp strcasecmp
#define JXP_ACCESS access
#elif defined(XP_MAC)
#define JSTRING char[]
#define JCOLOR long
#define JXP_ACCESS access
#endif
/* #define JRGB(r, g ,b) ( (r & 0xfff) | ((g & 0xfff) << 12)) | ((b & 0xfff) << 24))) */
#define JRGB(r, g ,b) ( (r & 0xff) | ((g & 0xff) << 8) | ((b & 0xff) << 16) )
#define JCRED(r) ( (r ) & 0xff )
#define JCGREEN(g) ( (g >> 8 ) & 0xff )
#define JCBLUE(b) ( (b >> 16) & 0xff )
typedef struct
{
long x;
long y;
} JPOINT;
typedef struct
{
int iExternalLeading;
} JTEXTMETRIC;
/* Turn on capi only for jsun */
/* #define CAPI_READY 1 */
#if DEBUG_jsun
/* #define CAPI_READY 1 */
#endif
#endif /* _JULIAN_DEFINES_H */