From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9023f3818c3c6a68 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-24 16:51:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!freenix!enst.fr!not-for-mail From: sk Newsgroups: comp.lang.ada Subject: Re: Detecting the OS type before clearing screen Date: Mon, 24 Mar 2003 18:58:09 -0600 Organization: ENST, France Message-ID: References: Reply-To: "comp.lang.ada mail to news gateway" NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1048553470 36102 137.194.161.2 (25 Mar 2003 00:51:10 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Tue, 25 Mar 2003 00:51:10 +0000 (UTC) To: "comp.lang.ada mail to news gateway" Return-Path: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020828 X-Accept-Language: en-us, en X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.1 Precedence: list List-Id: comp.lang.ada mail to news gateway List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:35664 Date: 2003-03-24T18:58:09-06:00 Hi, > ... which operating system my binary file is executed. I cannot think of circumstances where it is sensible to expect one binary to be able to run on both on Linux and Windows. This is a compile time issue and depends upon the libraries used (either windows libraries when on windows, Linux libraries when on Linux). If you are using Gnat then look at the gnat preprocessor for methods on how to compile different parts of the code for each platform. -- ------------------------------------------------- -- Merge vertically for real address -- -- s n p @ t . o -- k i e k c c m -------------------------------------------------