platform.h
Go to the documentation of this file.
00001 /* Copyright (C) 2001-2007 Peter Selinger.
00002    This file is part of Potrace. It is free software and it is covered
00003    by the GNU General Public License. See the file COPYING for details. */
00004 
00005 /* this header file contains some platform dependent stuff */
00006 
00007 #ifndef PLATFORM_H
00008 #define PLATFORM_H
00009 
00010 #ifdef HAVE_CONFIG_H
00011 #include "config.h"
00012 #endif
00013 
00014 /* in Windows, set all file i/o to binary */
00015 #ifdef __MINGW32__
00016 #include <fcntl.h>
00017 unsigned int _CRT_fmode = _O_BINARY;
00018 #endif
00019 
00020 #ifdef __CYGWIN__
00021 #include <fcntl.h>
00022 #include <io.h>
00023 static inline void platform_init(void) {
00024   setmode(0,O_BINARY); 
00025   setmode(1,O_BINARY);
00026 }
00027 #else
00028 static inline void platform_init(void) {
00029   /* NOP */
00030 }
00031 #endif
00032 
00033 #endif /* PLATFORM_H */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


portrait_painter
Author(s): Niklas Meinzer, Ina Baumgarten
autogenerated on Wed Dec 26 2012 16:00:43