File: listencanfork.c

package info (click to toggle)
octave-miscellaneous 1.2.1-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 624 kB
  • sloc: cpp: 1,209; ansic: 123; python: 118; makefile: 13; sh: 2
file content (13 lines) | stat: -rw-r--r-- 266 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
#if defined(__CYGWIN__)
#include <windows.h>

int listencanfork()
{
  OSVERSIONINFO osvi;
  osvi.dwOSVersionInfoSize = sizeof(osvi);
  GetVersionEx (&osvi);
  return (osvi.dwPlatformId != VER_PLATFORM_WIN32_WINDOWS);
}
#else
int listencanfork() { return 1; }
#endif