Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 15 lines (14 sloc) 0.572 kb
#! /bin/sh
CYG=$(uname | grep CYGWIN)
[ "$1" = "WIN" ] && WINDOWS=1
[ -n "$CYG" ] && CYGWIN=1
[ -z "$CYG" ] && UNIX=1
FILE="mlstate_platform.h"
echo "// generated C $CYGWIN L $UNIX W $WINDOWS" > $FILE
echo "// can define MLSTATE_WINDOWS MLSTATE_UNIX MLSTATE_CYGWIN" >> $FILE
echo "#ifndef MLSTATE_PLATFORM_H" >> $FILE
echo "#define MLSTATE_PLATFORM_H" >> $FILE
[ -n "$WINDOWS" ] && echo "#define MLSTATE_WINDOWS 1" >> $FILE
[ -n "$UNIX" ] && echo "#define MLSTATE_UNIX 1" >> $FILE
[ -n "$CYGWIN" ] && echo "#define MLSTATE_CYGWIN 1" >> $FILE
echo "#endif" >> $FILE
Jump to Line
Something went wrong with that request. Please try again.