src/share/native/sun/awt/medialib/mlib_sys.c

Print this page




  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 
  27 #include <stdlib.h>
  28 #include <string.h>
  29 #ifdef MACOSX
  30 #include <unistd.h>
  31 #include <sys/param.h>


  32 #endif
  33 #include <mlib_types.h>
  34 #include <mlib_sys_proto.h>
  35 #include "mlib_SysMath.h"
  36 
  37 /***************************************************************/
  38 
  39 #if ! defined ( __MEDIALIB_OLD_NAMES )
  40 #if defined ( __SUNPRO_C )
  41 
  42 #pragma weak mlib_memmove = __mlib_memmove
  43 #pragma weak mlib_malloc = __mlib_malloc
  44 #pragma weak mlib_realloc = __mlib_realloc
  45 #pragma weak mlib_free = __mlib_free
  46 #pragma weak mlib_memset = __mlib_memset
  47 #pragma weak mlib_memcpy = __mlib_memcpy
  48 
  49 #ifdef MLIB_NO_LIBSUNMATH
  50 #pragma weak mlib_sincosf = __mlib_sincosf
  51 #endif /* MLIB_NO_LIBSUNMATH */




  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 
  27 #include <stdlib.h>
  28 #include <string.h>
  29 #ifdef MACOSX
  30 #include <unistd.h>
  31 #include <sys/param.h>
  32 #else
  33 #include <malloc.h>
  34 #endif
  35 #include <mlib_types.h>
  36 #include <mlib_sys_proto.h>
  37 #include "mlib_SysMath.h"
  38 
  39 /***************************************************************/
  40 
  41 #if ! defined ( __MEDIALIB_OLD_NAMES )
  42 #if defined ( __SUNPRO_C )
  43 
  44 #pragma weak mlib_memmove = __mlib_memmove
  45 #pragma weak mlib_malloc = __mlib_malloc
  46 #pragma weak mlib_realloc = __mlib_realloc
  47 #pragma weak mlib_free = __mlib_free
  48 #pragma weak mlib_memset = __mlib_memset
  49 #pragma weak mlib_memcpy = __mlib_memcpy
  50 
  51 #ifdef MLIB_NO_LIBSUNMATH
  52 #pragma weak mlib_sincosf = __mlib_sincosf
  53 #endif /* MLIB_NO_LIBSUNMATH */