OSDN Git Service

388dcb45dfabe263d3b9b5f34f4b9b21c61fed0d
[pf3gnuchains/pf3gnuchains4x.git] / winsup / mingw / ofmt_stub.s
1 /* ofmt_stub.s
2  *
3  * $Id$
4  *
5  * A trivial stub, to replace the _get_output_format() function.
6  *
7  * _pformat() requires this function, which is provided by MSVCRT runtimes
8  * from msvcr80.dll onwards; add this stub to the import libraries for earlier
9  * versions of MSVCRT, (those which do not already advertise availability of
10  * any exported _get_output_format() function); this will permit _pformat()
11  * to transparently interoperate with all supported versions of MSVCRT.
12  * (Likewise for CRTDLL).
13  *
14  * Written by Keith Marshall  <keithmarshall@users.sourceforge.net>
15  * Contributed to the MinGW Project, and hereby assigned to the public domain.
16  *
17  * This is free software.  It is provided AS IS, in the hope that it may be
18  * useful.  There is NO WARRANTY OF ANY KIND, not even an implied warranty of
19  * merchantability, nor of fitness for any particular purpose.
20  *
21  */
22         .text
23         .p2align 1,,4
24
25 .globl __get_output_format
26         .def    __get_output_format;    .scl    2;      .type   32;     .endef
27
28 __get_output_format:
29 /*
30  * int _get_output_format( void );
31  *
32  * Implementation is trivial: we immediately return zero, thus matching the
33  * default behaviour of Microsoft's own implementation, in the absence of any
34  * preceding call to _set_output_format(); (if we are using this stub, then
35  * that entire API is unsupported, so no such prior call is possible).
36  */
37         xorl    %eax, %eax
38         ret
39
40 /* $RCSfile$Revision$: end of file */