#ifndef _INCLUDE_CLIONLY_H
#define _INCLUDE_CLIONLY_H

/*
**      $VER: clionly.h v1.10 (10/10/1997)
**
**      CLI startup code
**
**      (C) Copyright 1996 by StarGATE Software
**          All Rights Reserved
*/

#ifndef EXEC_TYPES_H
#include <exec/types.h>
#endif

#ifndef EXEC_LIBRARIES_H
#include <exec/libraries.h>
#endif

#ifndef CLIB_EXEC_PROTOS_H
#include <clib/exec_protos.h>
#endif

#ifndef CLIB_INTUITION_PROTOS_H
#include <clib/intuition_protos.h>
#endif

#ifndef _INCLUDE_STDLIB_H
#include <stdlib.h>
#endif

/********************************************************************/
/*                                                                  */
/*  Startup defines                                                 */
/*                                                                  */
/********************************************************************/

#ifdef __cplusplus
 #define LINKAGE_C extern "C"
#else
 #define LINKAGE_C
#endif

/********************************************************************/
/*                                                                  */
/*  Functions                                                       */
/*                                                                  */
/********************************************************************/

/* wbmain()
**
** -Needs no arguments-
**
** Return value: <none>
**
** Workbench-Startup
*/

LINKAGE_C void wbmain()
{
  struct Library    *IntuitionBase;
  struct EasyStruct  SysReq;

  if( IntuitionBase = OpenLibrary( "intuition.library",0 ) )
  {
    SysReq.es_StructSize   = sizeof( struct EasyStruct );
    SysReq.es_Flags        = NULL;
    SysReq.es_Title        = "Message:";
    SysReq.es_TextFormat   = "Sorry, but this program is CLI only!\nYou can't launch it from Workbench!";
    SysReq.es_GadgetFormat = "Cancel";

    EasyRequest( NULL,&SysReq,NULL,NULL );
  }

  exit(0);
}

#endif /* _INCLUDE_CLIONLY_H */

/********************************************************************/
/*                                                                  */
/*  Written by Marco Miljak                                         */
/*  © Copyright 10/10/1997                                          */
/*                                                                  */
/********************************************************************/

