/* *****************************************************************
*
* Copyright 2017 Microsoft
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*      http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************/

#ifndef MEMMEM_H__
#define MEMMEM_H__

#ifdef __cplusplus
extern "C" {
#endif

void *memmem(const void *haystack, size_t haystackLen, const void *needle, size_t needleLen);

#ifdef __cplusplus
}
#endif

#endif


/* *****************************************************************
*
* Copyright 2017 Microsoft
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*      http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************/

#ifndef MEMMEM_H__
#define MEMMEM_H__

// crtdefs.h is required for size_t
#include <crtdefs.h>

#ifdef __cplusplus
extern "C" {
#endif

void *memmem(const void *haystack, size_t haystackLen, const void *needle, size_t needleLen);

#ifdef __cplusplus
}
#endif

#endif


Fix a build break on Windows X86.
Fix a build break on Windows X86.

The newly added memmem function uses size_t in the function
definition. However size_t is not defined at the time memmem.h
is included. Adding crtdefs.h into memmem.h to fix.

Change-Id: I7a474e7befbf3bdc5dd8aa0bd4ca45d6bfa28d71
Signed-off-by: Mike Fenelon <765c1ea1ad8b7b919b9c046cb20b518277e493ca@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16359
Reviewed-by: Dan Mihai <ba8e1833495515b49ded9e20cae80a8129155aa9@microsoft.com>
Reviewed-by: Phil Coval <ff46fec9739d31cce915aabcc3a7a2c00eee4d6c@osg.samsung.com>
Tested-by: jenkins-iotivity <09cb29e8a2b473a2c978382eec13ee06fa017bda@opendaylight.org>
Reviewed-by: Dave Thaler <8a98d0850f57b73c42d096f8f8b11e2d5522d554@microsoft.com>
