% Plain TeX interface to color package.
% David Carlisle

\input miniltx

% \outer :(
\let\OUTER@newdimen\newdimen
\expandafter\def\expandafter\newdimen\expandafter{\newdimen}

\ifx\Gin@driver\@undefined
  \ifx\directlua\@undefined
    \ifx\pdfoutput\@undefined
      \def\Gin@driver{dvips.def}
    \else
      \ifnum\pdfoutput=1
        \def\Gin@driver{pdftex.def}
      \else
        \def\Gin@driver{dvips.def}
      \fi
    \fi
  \else
    \def\Gin@driver{luatex.def}
  \fi
\fi


\let\@color@protected\protected
\expandafter\@gobble\csname protected\endcsname

\input color.sty

\let\newdimen\OUTER@newdimen
\let\protected\@color@protected
\resetatcatcode
