#ifndef __MINGW_WIN_BULLSHIT #define __MINGW_WIN_BULLSHIT #include #include #include static SDL_sem * mingw_read_sem; static int mingw_readed; static int mingw_char_read; static int mingw_read_fd; static int mingw_sem_first_time; SDL_sem * get_mingw_read_sem(); int get_mingw_readed(); int set_mingw_readed(int tmp); int get_mingw_char_read(); int set_mingw_char_read(int tmp); int get_mingw_read_fd(); int set_mingw_read_fd(int tmp); int get_mingw_sem_first_time(); int set_mingw_sem_first_time(int tmp); // I want to make the buffer bigger, not one char a time // but i am lazy... //static char read_buf[1024]; //static int start_pt = 0; //static int end_pt = 0; // end comment void mingw_start_thread(int fd); #endif