git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@455
a5681a0c-68f1-0310-ab6d-
d61299d08faa
rrd_init(rrd);
if (rdwr == RRD_READONLY) {
-#if defined(WIN32)
mode = "rb";
-#else
- mode = "r";
-#endif
} else {
-#if defined(WIN32)
mode = "rb+";
-#else
- mode = "r+";
-#endif
}
if (((*in_file) = fopen(file_name,mode)) == NULL ){
* critical except during the burning cycles. */
if (schedule_smooth)
{
-#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
rrd_file = fopen(filename,"rb+");
-#else
- rrd_file = fopen(filename,"r+");
-#endif
rra_start = rra_begin;
for (i = 0; i < rrd.stat_head -> rra_cnt; ++i)
{