~ubuntu-branches/ubuntu/gutsy/cyrus-sasl2/gutsy-201105300151

« back to all changes in this revision

Viewing changes to mac/libdes/src/dllmain.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2006-11-27 12:59:40 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20061127125940-na3q3g3tkydvyvgl
Tags: 2.1.22.dfsg1-4ubuntu1
* Merge from debian unstable, remaining changes:
  - remove stop links from rc0 and rc6
  - build against db4.3 instead of 4.2
  - build against heimdal-dev instead of libkrb5-dev
  - depend on, don't recommend, modules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
0
2
* Copyright (c) 1995, 1996, 1997 Kungliga Tekniska H�gskolan
1
3
* (Royal Institute of Technology, Stockholm, Sweden).
2
4
* All rights reserved.
3
5
4
6
* Redistribution and use in source and binary forms, with or without
5
7
* modification, are permitted provided that the following conditions
6
8
* are met:
7
9
8
10
* 1. Redistributions of source code must retain the above copyright
9
11
*    notice, this list of conditions and the following disclaimer.
10
12
11
13
* 2. Redistributions in binary form must reproduce the above copyright
12
14
*    notice, this list of conditions and the following disclaimer in the
13
15
*    documentation and/or other materials provided with the distribution.
14
16
15
17
* 3. All advertising materials mentioning features or use of this software
16
18
*    must display the following acknowledgement:
17
19
*      This product includes software developed by the Kungliga Tekniska
18
20
*      H�gskolan and its contributors.
19
21
20
22
* 4. Neither the name of the Institute nor the names of its contributors
21
23
*    may be used to endorse or promote products derived from this software
22
24
*    without specific prior written permission.
23
25
24
26
* THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
25
27
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26
28
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27
29
* ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
28
30
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29
31
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30
32
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31
33
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32
34
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33
35
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34
36
* SUCH DAMAGE.
35
37
*/
 
 
b'#ifdef HAVE_CONFIG_H'
 
 
b'#include <config.h>'
 
 
b'RCSID("$Id: dllmain.c,v 1.2 2001/12/04 02:06:29 rjs3 Exp $");'
 
 
b'#endif'
 
 
b'#include <Windows.h>'
 
 
b'BOOL WINAPI'
 
 
b'DllMain (HANDLE hInst, '
 
 
b'\t ULONG reason,'
 
 
b'\t LPVOID lpReserved)'
 
 
b'{'
36
38
   switch(reason) {
37
39
   case DLL_PROCESS_ATTACH:
38
40
   case DLL_PROCESS_DETACH:
39
41
   default:
 
 
b'\treturn TRUE;'
40
42
   }
 
 
b'}'
 
 
b'\\ No newline at end of file'