A few days ago, Casey added a size_t type declaration for memory_index to handmade_platform.h. For those of us porting to other platforms, this breaks the compile of handmade.cpp.
On Windows, size_t is defined in crtdefs.h, which stdint.h includes. On OS X (and most Unix-y platforms), size_t isn't defined via stdint.h.
An easy way to fix this would be to also #include <stddef.h> in handmade_platform.h. This is harmless under Windows and will solve the OS X/Linux compile issue. Or alternatively, if you're willing to make a reasonable assumption about the values of memory_index, you could change its type from size_t to uint64 like we did with the semantically similar PermanentStorageSize/TransientStorageSize declarations.
You can temporarily avoid editing the golden handmade_platform.h file by adding this to the compiler flags in your Makefile or Xcode build settings for handmade.cpp: