The R Project SVN R

Rev

Rev 68949 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
59051 murdoch 1
/*
2
 *  R : A Computer Language for Statistical Data Analysis
3
 *  Copyright (C) 2001-2010 The R Core Team
4
 *
5
 *  This program is free software; you can redistribute it and/or modify
6
 *  it under the terms of the GNU General Public License as published by
7
 *  the Free Software Foundation; either version 2 of the License, or
8
 *  (at your option) any later version.
9
 *
10
 *  This program is distributed in the hope that it will be useful,
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 *  GNU General Public License for more details.
14
 *
15
 *  You should have received a copy of the GNU General Public License
16
 *  along with this program; if not, a copy is available at
17
 *  http://www.r-project.org/Licenses/
18
 */
19
 
20
#ifdef HAVE_CONFIG_H
21
#include <config.h>
22
#endif
23
 
24
#ifdef WIN32
25
# include <fcntl.h>
26
 
27
static void __attribute__((constructor))
28
init(void)
29
{
30
    /* gfortran initialization sets these to _O_BINARY */
31
    setmode(1,_O_TEXT); /* stdout */
32
    setmode(2,_O_TEXT); /* stderr */
33
    return;
34
}
35
#endif