1 //  This may look like C code, but it is really -*- C++ -*-
2 
3 //  ------------------------------------------------------------------
4 //  The Goldware Library
5 //  Copyright (C) 1990-1999 Odinn Sorensen
6 //  Copyright (C) 1999-2000 Alexander S. Aganichev
7 //  ------------------------------------------------------------------
8 //  This library is free software; you can redistribute it and/or
9 //  modify it under the terms of the GNU Library General Public
10 //  License as published by the Free Software Foundation; either
11 //  version 2 of the License, or (at your option) any later version.
12 //
13 //  This library is distributed in the hope that it will be useful,
14 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 //  Library General Public License for more details.
17 //
18 //  You should have received a copy of the GNU Library General Public
19 //  License along with this program; if not, write to the Free
20 //  Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 //  MA 02111-1307, USA
22 //  ------------------------------------------------------------------
23 //  $Id: gshare.h,v 1.4 2005/10/23 04:39:24 ssianky Exp $
24 //  ------------------------------------------------------------------
25 
26 #ifndef __gshare_h
27 #define __gshare_h
28 
29 
30 //  ------------------------------------------------------------------
31 
32 #include <gdefs.h>
33 
34 
35 //  ------------------------------------------------------------------
36 
37 #if !defined(__GNUC__) || defined(__DJGPP__) || defined(__EMX__) || defined(__MINGW32__)
38 #include <share.h>
39 #if defined(__MINGW32__)        // SH_COMPAT doesn't work in Mingw32
40 #undef SH_COMPAT
41 #endif
42 #elif !defined(SH_DENYNO)
43 #define SH_DENYRW   0x10    // Deny read/write
44 #define SH_DENYWR   0x20    // Deny write
45 #define SH_DENYRD   0x30    // Deny read
46 #define SH_DENYNO   0x40    // Deny nothing
47 #endif
48 
49 #ifndef SH_COMPAT
50 #define SH_COMPAT SH_DENYNO
51 #endif
52 
53 
54 //  ------------------------------------------------------------------
55 
56 #endif
57 
58 //  ------------------------------------------------------------------
59