/*---------------------------------------------------------------------------* Copyright (C) Nintendo. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. *---------------------------------------------------------------------------*/ #include #include static int malloc_force_include_memset = 0; static int malloc_force_include_memcpy = 0; int rpl_entry(void *p, int i) { if (i == 0xcafedead) { /* force include of memset and memcpy, so it will be defined when malloc is pulled in */ memset(&malloc_force_include_memset, 0, sizeof(malloc_force_include_memset)); memcpy(&malloc_force_include_memcpy, &malloc_force_include_memset, sizeof(malloc_force_include_memcpy)); } return 0; }