Update of /cvsroot/mahogany/M/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30163/include

Modified Files:
        Mconfig.h 
Log Message:
autodetect USE_PCH

Index: Mconfig.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/Mconfig.h,v
retrieving revision 1.50
retrieving revision 1.51
diff -b -u -2 -r1.50 -r1.51
--- Mconfig.h   22 Jul 2003 22:41:27 -0000      1.50
+++ Mconfig.h   11 Mar 2004 11:38:20 -0000      1.51
@@ -1,9 +1,14 @@
-/*-*- c++ -*-********************************************************
- * Mconfig.h: configuration for M                                   *
- *                                                                  *
- * (C) 1997-1999 by Karsten Ball�der ([EMAIL PROTECTED])            *
- *                                                                  *
- * $Id$               *
- *******************************************************************/
+//////////////////////////////////////////////////////////////////////////////
+// Project:     M - cross platform e-mail GUI client
+// File name:   Mconfig.h: common compilation configuration settings
+// Purpose:     config.h is edited by the user, this one detects the rest
+//              automatically
+// Author:      Karsten Ball�der, Vadim Zeitlin
+// Modified by:
+// Created:     1997
+// CVS-ID:      $Id$
+// Copyright:   (C) 1999-2004 by M-Team
+// Licence:     M license
+///////////////////////////////////////////////////////////////////////////////
 
 #ifndef MCONFIG_H
@@ -12,4 +17,8 @@
 #include  "config.h"
 
+// ----------------------------------------------------------------------------
+// detect the OS
+// ----------------------------------------------------------------------------
+
 #undef   OS_SOLARIS
 #undef   OS_LINUX
@@ -48,15 +57,4 @@
 #  define  OS_WIN    1
 #  define  OS_TYPE    "windows"
-#  ifndef  __WINDOWS__
-#       define  __WINDOWS__     // for wxWindows 2.x
-#  endif
-#endif
-
-/// Test for MacOS:
-#if defined( __POWERPC__ ) && ( defined( __MWERKS__ ) || defined ( THINK_C ))
-#   define   OS_MAC   1
-#   define   OS_TYPE      "MacOS"
-#   undef    OS_SUBTYPE
-#   define   OS_SUBTYPE   ""
 #endif
 
@@ -76,4 +74,8 @@
 #endif
 
+// ----------------------------------------------------------------------------
+// detect the compiler
+// ----------------------------------------------------------------------------
+
 // Are we using GCC?
 #ifdef  __GNUG__
@@ -96,6 +98,15 @@
 #   define   CC_MSC   1
 #   define   CC_TYPE  "Visual C++"
+
+    // no reason not to use precompiled headers with VC++
+#   ifndef USE_PCH
+#       define USE_PCH
+#   endif
 #endif
 
+// ----------------------------------------------------------------------------
+// miscellaneous other stuff
+// ----------------------------------------------------------------------------
+
 /// debug allocator
 #undef   USE_DEBUGNEW



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to