title: Integrating Python and C++ MacOS PyModuleDef_HEAD_INIT Undeclared
body: <p>I am facing this issue while developing on XCode. Unable to find anything online. I don't even have any idea if this issue is related to XCode or it's a general issue.</p>
  
  <p>So Here is my sample code:</p>
  
  <pre><code>#include "myModule.h"
  #include &lt;Python/Python.h&gt;
  int Cfib(int n){
      if (n&lt;2){
          return n;
      }
      else{
          return Cfib(n-1)+Cfib(n-2);
      }
  }
  
  static PyObject* fib(PyObject* self, PyObject* args){
      int n;
      if (!PyArg_ParseTuple(args, "i", &amp;n)){
          return NULL;
      }
      return Py_BuildValue("i", Cfib(n));
  }
  
  static PyObject* version(PyObject* self){
      return Py_BuildValue("s", "Version 1.0");
  }
  
  static PyMethodDef myMethods[] = {
  
      {"fib", fib, METH_VARARGS, "Calculate the fibonacci numbers."},
      {"version", (PyCFunction)version, METH_NOARGS, "Tells us the version of our module."},
      {NULL, NULL, 0, NULL}
  
  };
  
  static struct PyModuleDef myModule = {
      PyModuleDef_HEAD_INIT,  // Use of undeclared indentifier PyModuleDef_HEAD_INIT
      "myModule",
      "Fibnoacci Module",
      -1,
      myMethods
  };
  </code></pre>
  
  <p>Does anyone have any idea what to do to have ** PyModuleDef_HEAD_INIT**? What is the default Method Head Definition value which I can declare to overcome? </p>
  
  <p>Or should I just turn towards Linux environment for further development?</p>
  
  <p>Thanks.</p>