Hi

This patch adds __get_riscosify_control() and __set_riscosify_control() to
unixlib/local.h. It's useful for checking the state of __riscosify_control
in library code without requiring it to be provided in the main application
code.

Regards
Cameron
Index: recipe/files/gcc/libunixlib/incl-local/internal/local.h
===================================================================
--- recipe/files/gcc/libunixlib/incl-local/internal/local.h	(revision 7569)
+++ recipe/files/gcc/libunixlib/incl-local/internal/local.h	(working copy)
@@ -110,15 +110,6 @@
 
 extern const char __filename_char_map[256];
 
-/* Gets the __riscosify_control value which can be defined by
-   the global variable __riscosify_control in the user program.
-   Returns a copy of __riscosify_control_internal (with a default
-   value of 0) when __riscosify_control is not defined.  */
-extern int __get_riscosify_control (void);
-/* Sets the __riscosify_control value when it's defined.
-   Otherwise __riscosify_control_internal gets written.  */
-extern void __set_riscosify_control (int __riscosify_flags);
-
 /* Get an object's filetype, object type, etc and do some common checks.
    Returns nonzero and sets errno on error. Returns riscosified filename
    in __buffer. __objtype, __ftype and __attr may be NULL if not needed. */
Index: recipe/files/gcc/libunixlib/include/unixlib/local.h
===================================================================
--- recipe/files/gcc/libunixlib/include/unixlib/local.h	(revision 7569)
+++ recipe/files/gcc/libunixlib/include/unixlib/local.h	(working copy)
@@ -32,6 +32,16 @@
 
 extern int __riscosify_control; /* Note: this is a weak symbol.  */
 
+/* Gets the __riscosify_control value which can be defined by
+   the global variable __riscosify_control in the user program.
+   Returns a copy of __riscosify_control_internal (with a default
+   value of 0) when __riscosify_control is not defined.  */
+extern int __get_riscosify_control (void);
+
+/* Sets the __riscosify_control value when it's defined.
+   Otherwise __riscosify_control_internal gets written.  */
+extern void __set_riscosify_control (int __riscosify_flags);
+
 /* Bits 1 - 5 (incl), 7 and 15 - 31 (incl) of __riscosify_control are not
    allocated.  */
 
_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

Reply via email to